Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2019-06-05 14:44:24 +0300
committermano-wii <germano.costa@ig.com.br>2019-06-05 14:45:12 +0300
commitf2da21e0523d06781912726ec5b214f71b0219f3 (patch)
tree2669e1a7014eff842c5940062c4bca4b013969e5 /source/blender/python/gpu
parent8db6b1e2ddf342a5cf6bf1f42359ccbfee1ab958 (diff)
Python GPU Shader: Fix crash when uniform is not found.
Error in string format.
Diffstat (limited to 'source/blender/python/gpu')
-rw-r--r--source/blender/python/gpu/gpu_py_shader.c2
1 files changed, 1 insertions, 1 deletions
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;