Adding 3D_POLYLINE_UNIFORM_COLOR to PyGPU shader API

This would allow python script to access `lineWidth` uniform when drawing lines
without using `glLineWidth`.

Reviewed By: Jeroen Bakker

Differential Revision: https://developer.blender.org/D9518
This commit is contained in:
YimingWu
2020-11-13 08:22:47 +01:00
committed by Jeroen Bakker
parent 4dc5920525
commit b35b8c8849

View File

@@ -64,6 +64,7 @@ static int bpygpu_ParseBultinShaderEnum(PyObject *o, void *p)
MATCH_ID(3D_UNIFORM_COLOR);
MATCH_ID(3D_FLAT_COLOR);
MATCH_ID(3D_SMOOTH_COLOR);
MATCH_ID(3D_POLYLINE_UNIFORM_COLOR);
#undef MATCH_ID
PyErr_Format(PyExc_ValueError, "unknown type literal: '%s'", mode_id);