diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-29 04:53:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-29 06:41:48 +0300 |
commit | fd0b2b8dfd60d689ffe562c99a25f2e879a1ca37 (patch) | |
tree | f7db1074c88b3c25a15bb687414308f56be28c42 /source/blender/python/generic/py_capi_utils.c | |
parent | bc0a7d3fae5cfbe76ff84b76cb0ce48fe46adea5 (diff) |
Cleanup: use PyC_AsArray_FAST function where possible
Oversight in 2453dc1b0ecad21a84b45e8c900a16cc42fa12f1.
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.c')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 3 |
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); |