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:
parent
4dc5920525
commit
b35b8c8849
Notes:
blender-bot
2023-05-03 10:14:48 +02:00
Referenced by issue blender/blender-addons#82562, Measureit line width inoperative
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue