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:
Diffstat (limited to 'source/blender/python/gpu/gpu_py_element.c')
-rw-r--r--source/blender/python/gpu/gpu_py_element.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/python/gpu/gpu_py_element.c b/source/blender/python/gpu/gpu_py_element.c
index 2dd8d1c379e..2fb722f74db 100644
--- a/source/blender/python/gpu/gpu_py_element.c
+++ b/source/blender/python/gpu/gpu_py_element.c
@@ -144,8 +144,12 @@ static PyObject *pygpu_IndexBuf__tp_new(PyTypeObject *UNUSED(type), PyObject *ar
goto finally;
}
- ok = PyC_AsArray_FAST(
- values, seq_fast_item, verts_per_prim, &PyLong_Type, false, error_prefix) == 0;
+ ok = PyC_AsArray_FAST(values,
+ sizeof(*values),
+ seq_fast_item,
+ verts_per_prim,
+ &PyLong_Type,
+ error_prefix) == 0;
if (ok) {
for (uint j = 0; j < verts_per_prim; j++) {