From 112a2c0627fad56a38030b080ef63fd9ffa4c90b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 24 Aug 2022 10:18:35 +1000 Subject: [PATCH] Fix error from 21ea4995585931ad54f51c1878c06c526c3355a5 Was not using the absolute index for comparison, breaking the id_management test. --- source/blender/python/intern/bpy_rna.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index b22c5e60eb3..55c8285f509 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -2250,7 +2250,7 @@ static PyObject *pyrna_prop_collection_subscript_int(BPy_PropertyRNA *self, Py_s } else { /* No callback defined, just iterate and find the nth item. */ - const int key = (int)keynum; + const int key = (int)keynum_abs; PyObject *result = NULL; bool found = false; CollectionPropertyIterator iter;