Fix GPU Buffer not allowing uint values greater than one byte
Error in format passed in `PyArg_Parse`
This commit is contained in:
parent
4e91cd5c11
commit
a131e3bec7
Notes:
blender-bot
2023-02-14 08:06:35 +01:00
Referenced by issue #91523, Blender 3.0 Curve to Mesh Issue
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue