fix for error with property getattro in recent commit which broke autocomp.

active base/bone & editbone were not converted to property srna
This commit is contained in:
2009-11-13 16:37:44 +00:00
parent 91352006c4
commit c1d0f9179d
3 changed files with 85 additions and 36 deletions

View File

@@ -1494,14 +1494,16 @@ static PyObject *pyrna_prop_getattro( BPy_PropertyRNA *self, PyObject *pyname )
if(RNA_property_collection_type_get(&self->ptr, self->prop, &r_ptr)) {
if ((prop = RNA_struct_find_property(&r_ptr, name))) {
ret = pyrna_prop_to_py(&r_ptr, prop);
return ret;
}
else if ((func = RNA_struct_find_function(&r_ptr, name))) {
PyObject *self_collection= pyrna_struct_CreatePyObject(&r_ptr);
ret = pyrna_func_to_py((BPy_DummyPointerRNA *)self_collection, func);
Py_DECREF(self_collection);
}
return ret;
return ret;
}
}
}