Commit: f2da21e0523d06781912726ec5b214f71b0219f3
Author: mano-wii
Date: Wed Jun 5 08:44:24 2019 -0300
Branches: master
https://developer.blender.org/rBf2da21e0523d06781912726ec5b214f71b0219f3
Python GPU Shader: Fix crash when uniform is not found.
Error in string format.
===================================================================
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 0aada94c3c9..5d6989af4c3 100644
--- a/source/blender/python/gpu/gpu_py_shader.c
+++ b/source/blender/python/gpu/gpu_py_shader.c
@@ -83,7 +83,7 @@ static int bpygpu_uniform_location_get(GPUShader *shader,
int uniform = GPU_shader_get_uniform_ensure(shader, name);
if (uniform == -1) {
- PyErr_Format(PyExc_ValueError, "%s: uniform %.32s %.32s not found",
error_prefix, name);
+ PyErr_Format(PyExc_ValueError, "%s: uniform %.32s not found",
error_prefix, name);
}
return uniform;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs