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
Notes: blender-bot 2023-05-03 10:14:48 +02:00
Referenced by issue blender/blender-addons#82562, Measureit line width inoperative
1 changed files with 1 additions and 0 deletions

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);