From fd0b2b8dfd60d689ffe562c99a25f2e879a1ca37 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 29 Jul 2021 11:53:04 +1000 Subject: Cleanup: use PyC_AsArray_FAST function where possible Oversight in 2453dc1b0ecad21a84b45e8c900a16cc42fa12f1. --- source/blender/python/generic/py_capi_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/python') 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); -- cgit v1.2.3