Python GPU Shader: Fix crash when uniform is not found.
authormano-wii <germano.costa@ig.com.br>
Wed, 5 Jun 2019 11:44:24 +0000 (08:44 -0300)
committermano-wii <germano.costa@ig.com.br>
Wed, 5 Jun 2019 11:45:12 +0000 (08:45 -0300)
Error in string format.

source/blender/python/gpu/gpu_py_shader.c

index 0aada94..5d6989a 100644 (file)
@@ -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;