diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-06-05 14:44:24 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-06-05 14:45:12 +0300 |
commit | f2da21e0523d06781912726ec5b214f71b0219f3 (patch) | |
tree | 2669e1a7014eff842c5940062c4bca4b013969e5 /source/blender/python/gpu | |
parent | 8db6b1e2ddf342a5cf6bf1f42359ccbfee1ab958 (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.c | 2 |
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; |