Fix T94121: PyAPI: ID property group returns wrong type with iter()
Regression in 265d97556a.
Where iterating directly on a property group failed, e.g.:
`iter(group)`, tests missed this since only `group.keys()`
was checked.
This commit is contained in:
@@ -756,7 +756,16 @@ static int BPy_IDGroup_Map_SetItem(BPy_IDProperty *self, PyObject *key, PyObject
|
||||
|
||||
static PyObject *BPy_IDGroup_iter(BPy_IDProperty *self)
|
||||
{
|
||||
return BPy_IDGroup_ViewKeys_CreatePyObject(self);
|
||||
PyObject *iterable = BPy_IDGroup_ViewKeys_CreatePyObject(self);
|
||||
PyObject *ret;
|
||||
if (iterable) {
|
||||
ret = PyObject_GetIter(iterable);
|
||||
Py_DECREF(iterable);
|
||||
}
|
||||
else {
|
||||
ret = NULL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
PyObject *BPy_IDGroup_MapDataToPy(IDProperty *prop)
|
||||
|
||||
Reference in New Issue
Block a user