[Bf-blender-cvs] [b35b8c88490] master: Adding 3D_POLYLINE_UNIFORM_COLOR to PyGPU shader API
YimingWu
noreply at git.blender.org
Fri Nov 13 08:23:57 CET 2020
Commit: b35b8c884909307bff2f71ce766621144fbc85a1
Author: YimingWu
Date: Fri Nov 13 08:22:47 2020 +0100
Branches: master
https://developer.blender.org/rBb35b8c884909307bff2f71ce766621144fbc85a1
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
===================================================================
M source/blender/python/gpu/gpu_py_shader.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list