[Bf-blender-cvs] [f2da21e0523] master: Python GPU Shader: Fix crash when uniform is not found.

mano-wii noreply at git.blender.org
Wed Jun 5 13:45:28 CEST 2019


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;



More information about the Bf-blender-cvs mailing list