Cleanup: rename VertBuf.fill_attribute > attr_fill

This commit is contained in:
2018-10-23 10:49:36 +11:00
parent 43c6aba670
commit e5182fa101
2 changed files with 11 additions and 11 deletions

View File

@@ -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,