Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2018-10-05 20:06:24 +0300
committermano-wii <germano.costa@ig.com.br>2018-10-05 20:38:35 +0300
commit550fee8eb6f76028d83192536c454786b6e0e516 (patch)
tree919c9d382f51035a704e3c5d97772078cd6b7e84 /source/blender/python/gpu/gpu_py_vertex_format.c
parent25bd9feadb36053bdef938b52f77caf0a34016ad (diff)
GPU Python: use _PyArg_ParseTupleAndKeywordsFast.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_vertex_format.c')
-rw-r--r--source/blender/python/gpu/gpu_py_vertex_format.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/python/gpu/gpu_py_vertex_format.c b/source/blender/python/gpu/gpu_py_vertex_format.c
index 794167fab7a..0568bc2a9ae 100644
--- a/source/blender/python/gpu/gpu_py_vertex_format.c
+++ b/source/blender/python/gpu/gpu_py_vertex_format.c
@@ -211,11 +211,14 @@ static int insert_attributes_from_list(GPUVertFormat *format, PyObject *list)
static PyObject *bpygpu_VertFormat_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds)
{
-
PyObject *format_list;
- static const char *keywords[] = {"format", NULL};
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!", (char**)keywords, &PyList_Type, &format_list)) {
+ static const char *_keywords[] = {"format", NULL};
+ static _PyArg_Parser _parser = {"O!:VertFormat.__new__", _keywords, 0};
+ if (!_PyArg_ParseTupleAndKeywordsFast(
+ args, kwds, &_parser,
+ &PyList_Type, &format_list))
+ {
return NULL;
}