[Bf-blender-cvs] [fd0b2b8dfd6] master: Cleanup: use PyC_AsArray_FAST function where possible
Campbell Barton
noreply at git.blender.org
Thu Jul 29 05:55:05 CEST 2021
Commit: fd0b2b8dfd60d689ffe562c99a25f2e879a1ca37
Author: Campbell Barton
Date: Thu Jul 29 11:53:04 2021 +1000
Branches: master
https://developer.blender.org/rBfd0b2b8dfd60d689ffe562c99a25f2e879a1ca37
Cleanup: use PyC_AsArray_FAST function where possible
Oversight in 2453dc1b0ecad21a84b45e8c900a16cc42fa12f1.
===================================================================
M source/blender/python/generic/py_capi_utils.c
===================================================================
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c
index 950d0fd7019..51e20a31ba8 100644
--- a/source/blender/python/generic/py_capi_utils.c
+++ b/source/blender/python/generic/py_capi_utils.c
@@ -228,7 +228,8 @@ static int PyC_AsArray_Multi_FAST_impl(void **array_p,
const int length = dims[0];
if (dims_len == 1) {
- if (PyC_AsArray(*array_p, array_item_size, value_fast, length, type, error_prefix) == -1) {
+ if (PyC_AsArray_FAST(*array_p, array_item_size, value_fast, length, type, error_prefix) ==
+ -1) {
return -1;
}
*array_p = POINTER_OFFSET(*array_p, array_item_size * length);
More information about the Bf-blender-cvs
mailing list