Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <NicksBest>2020-11-13 10:22:47 +0300
committerJeroen Bakker <jeroen@blender.org>2020-11-13 10:23:04 +0300
commitb35b8c884909307bff2f71ce766621144fbc85a1 (patch)
tree2591aebce8004014acf9f1c08b330d0d21423e72 /source/blender/python/gpu/gpu_py_shader.c
parent4dc59205258d5054fdcd452fe82ccd4b7ea76151 (diff)
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
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader.c')
-rw-r--r--source/blender/python/gpu/gpu_py_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c
index 3748691c434..c90a4a7bc9d 100644
--- a/source/blender/python/gpu/gpu_py_shader.c
+++ b/source/blender/python/gpu/gpu_py_shader.c
@@ -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);