From f2da21e0523d06781912726ec5b214f71b0219f3 Mon Sep 17 00:00:00 2001 From: mano-wii Date: Wed, 5 Jun 2019 08:44:24 -0300 Subject: Python GPU Shader: Fix crash when uniform is not found. Error in string format. --- source/blender/python/gpu/gpu_py_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python') 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; -- cgit v1.2.3