[Bf-blender-cvs] [cfca5dcb39a] temp-lineart-contained: Adding 3D_POLYLINE_UNIFORM_COLOR to PyGPU shader API
YimingWu
noreply at git.blender.org
Sat Dec 19 06:18:50 CET 2020
Commit: cfca5dcb39ac9b6c223ff91393515039065fc347
Author: YimingWu
Date: Fri Nov 13 08:22:47 2020 +0100
Branches: temp-lineart-contained
https://developer.blender.org/rBcfca5dcb39ac9b6c223ff91393515039065fc347
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