[Bf-blender-cvs] [a131e3bec7f] master: Fix GPU Buffer not allowing uint values greater than one byte

Germano Cavalcante noreply at git.blender.org
Thu Sep 9 01:28:08 CEST 2021


Commit: a131e3bec7f8cf9b81a110881030d983667ce826
Author: Germano Cavalcante
Date:   Wed Sep 8 20:25:52 2021 -0300
Branches: master
https://developer.blender.org/rBa131e3bec7f8cf9b81a110881030d983667ce826

Fix GPU Buffer not allowing uint values greater than one byte

Error in format passed in `PyArg_Parse`

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

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

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

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 */
   }



More information about the Bf-blender-cvs mailing list