diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-05-24 04:38:05 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-05-24 04:38:05 +0300 |
commit | 64a5a7ade1e98234247a4140c182423ebc616d26 (patch) | |
tree | 5e88033819856c06bd45ba6e9761b48455328d47 | |
parent | bb6f0b085e6ea954377682fd345a26df3b2d983f (diff) | |
parent | 5744e7d24783077e7acfcd8d56d78af51c33a2ff (diff) |
Merge branch 'blender-v3.2-release'
-rw-r--r-- | source/blender/python/gpu/gpu_py_element.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/python/gpu/gpu_py_element.c b/source/blender/python/gpu/gpu_py_element.c index 04975fcef96..616e7da6e9f 100644 --- a/source/blender/python/gpu/gpu_py_element.c +++ b/source/blender/python/gpu/gpu_py_element.c @@ -91,15 +91,11 @@ static PyObject *pygpu_IndexBuf__tp_new(PyTypeObject *UNUSED(type), PyObject *ar /* Use `INT_MAX` instead of the actual number of vertices. */ GPU_indexbuf_init(&builder, prim_type.value_found, index_len, INT_MAX); -#if 0 uint *buf = pybuffer.buf; for (uint i = index_len; i--; buf++) { GPU_indexbuf_add_generic_vert(&builder, *buf); } -#else - memcpy(builder.data, pybuffer.buf, index_len * sizeof(*builder.data)); - builder.index_len = index_len; -#endif + PyBuffer_Release(&pybuffer); } else { |