Was not using the absolute index for comparison,
breaking the id_management test.
This commit is contained in:
Campbell Barton 2022-08-24 10:18:35 +10:00
parent efc9faef23
commit 112a2c0627
1 changed files with 1 additions and 1 deletions

View File

@ -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;