[Bf-blender-cvs] [6ed9fcbabc7] blender2.8: PyAPI: rename GPL VertBuf.attr_fill identifier to id

Campbell Barton noreply at git.blender.org
Thu Oct 25 11:34:34 CEST 2018


Commit: 6ed9fcbabc77c2de897232be922674e70ed1b62b
Author: Campbell Barton
Date:   Thu Oct 25 20:32:02 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB6ed9fcbabc77c2de897232be922674e70ed1b62b

PyAPI: rename GPL VertBuf.attr_fill identifier to id

This is used elsewhere in the API and its a common abbreviation.

===================================================================

M	source/blender/python/gpu/gpu_py_vertex_buffer.c

===================================================================

diff --git a/source/blender/python/gpu/gpu_py_vertex_buffer.c b/source/blender/python/gpu/gpu_py_vertex_buffer.c
index c4a4c9ea3de..440cefe553e 100644
--- a/source/blender/python/gpu/gpu_py_vertex_buffer.c
+++ b/source/blender/python/gpu/gpu_py_vertex_buffer.c
@@ -266,12 +266,12 @@ static PyObject *bpygpu_VertBuf_new(PyTypeObject *UNUSED(type), PyObject *args,
 }
 
 PyDoc_STRVAR(bpygpu_VertBuf_attr_fill_doc,
-"attr_fill(identifier, data)\n"
+"attr_fill(id, data)\n"
 "\n"
 "   Insert data into the buffer for a single attribute.\n"
 "\n"
-"   :param identifier: Either the name or the id of the attribute.\n"
-"   :type identifier: int or str\n"
+"   :param id: Either the name or the id of the attribute.\n"
+"   :type id: int or str\n"
 "   :param data: Sequence of data that should be stored in the buffer\n"
 "   :type data: sequence of individual values or tuples\n"
 );
@@ -280,7 +280,7 @@ static PyObject *bpygpu_VertBuf_attr_fill(BPyGPUVertBuf *self, PyObject *args, P
 	PyObject *data;
 	PyObject *identifier;
 
-	static const char *_keywords[] = {"identifier", "data", NULL};
+	static const char *_keywords[] = {"id", "data", NULL};
 	static _PyArg_Parser _parser = {"OO:attr_fill", _keywords, 0};
 	if (!_PyArg_ParseTupleAndKeywordsFast(
 	        args, kwds, &_parser,



More information about the Bf-blender-cvs mailing list