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:
authorCampbell Barton <ideasman42@gmail.com>2021-07-29 04:53:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-29 06:41:48 +0300
commitfd0b2b8dfd60d689ffe562c99a25f2e879a1ca37 (patch)
treef7db1074c88b3c25a15bb687414308f56be28c42 /source/blender/python
parentbc0a7d3fae5cfbe76ff84b76cb0ce48fe46adea5 (diff)
Cleanup: use PyC_AsArray_FAST function where possible
Oversight in 2453dc1b0ecad21a84b45e8c900a16cc42fa12f1.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/py_capi_utils.c3
1 files changed, 2 insertions, 1 deletions
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);