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:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-09-09 02:25:52 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-09-09 02:28:00 +0300
commita131e3bec7f8cf9b81a110881030d983667ce826 (patch)
treeacdae02c10d88bb75f57d20c4c13acd3d957c8a7
parent4e91cd5c11fa2cbadfdaad8c527a63fed8ae4951 (diff)
Fix GPU Buffer not allowing uint values greater than one byte
Error in format passed in `PyArg_Parse`
-rw-r--r--source/blender/python/gpu/gpu_py_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/gpu/gpu_py_buffer.c b/source/blender/python/gpu/gpu_py_buffer.c
index 0fef59d6352..abfde7b48c8 100644
--- a/source/blender/python/gpu/gpu_py_buffer.c
+++ b/source/blender/python/gpu/gpu_py_buffer.c
@@ -485,7 +485,7 @@ static int pygpu_buffer__sq_ass_item(BPyGPUBuffer *self, int i, PyObject *v)
case GPU_DATA_UINT:
case GPU_DATA_UINT_24_8:
case GPU_DATA_10_11_11_REV:
- return PyArg_Parse(v, "b:Expected ints", &self->buf.as_uint[i]) ? 0 : -1;
+ return PyArg_Parse(v, "I:Expected unsigned ints", &self->buf.as_uint[i]) ? 0 : -1;
default:
return 0; /* should never happen */
}