diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-24 03:18:35 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-24 03:20:05 +0300 |
commit | 112a2c0627fad56a38030b080ef63fd9ffa4c90b (patch) | |
tree | c6087f5d60bf383d86f878efe7e1e4c4b3c77674 /source/blender | |
parent | efc9faef23fdbc3e3eb0d88ed096aa269a294f01 (diff) |
Fix error from 21ea4995585931ad54f51c1878c06c526c3355a5
Was not using the absolute index for comparison,
breaking the id_management test.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |