diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-23 02:49:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-23 02:50:48 +0300 |
commit | e5182fa101a47d974e0d88c371bd7f3191cc656b (patch) | |
tree | 8e3bd0ba7ad906709b5bc543ec096ceea860f494 /source/blender/python/gpu/gpu_py_shader.c | |
parent | 43c6aba6705111f93fee903480e96a96c298f97d (diff) |
Cleanup: rename VertBuf.fill_attribute > attr_fill
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c index 07a139de418..061c844a54d 100644 --- a/source/blender/python/gpu/gpu_py_shader.c +++ b/source/blender/python/gpu/gpu_py_shader.c @@ -572,15 +572,15 @@ static PyObject *bpygpu_shader_attr_from_name( return NULL; } - int attrib = GPU_shader_get_attribute(self->shader, name); + int attr = GPU_shader_get_attribute(self->shader, name); - if (attrib == -1) { + if (attr == -1) { PyErr_Format(PyExc_ValueError, "GPUShader.attr_from_name: attribute %.32s not found", name); return NULL; } - return PyLong_FromLong(attrib); + return PyLong_FromLong(attr); } PyDoc_STRVAR(bpygpu_shader_calc_format_doc, |