Cleanup: comments
This commit is contained in:
@@ -4598,13 +4598,12 @@ static PyObject *pyrna_prop_collection_getattro(BPy_PropertyRNA *self, PyObject
|
||||
#else
|
||||
{
|
||||
/* Could just do this except for 1 awkward case.
|
||||
* PyObject_GenericGetAttr((PyObject *)self, pyname);
|
||||
* so as to support 'bpy.data.library.load()'
|
||||
* note, this _only_ supports static methods */
|
||||
* `PyObject_GenericGetAttr((PyObject *)self, pyname);`
|
||||
* so as to support `bpy.data.library.load()` */
|
||||
|
||||
PyObject *ret = PyObject_GenericGetAttr((PyObject *)self, pyname);
|
||||
|
||||
if (ret == NULL && name[0] != '_') { /* Avoid inheriting __call__ and similar. */
|
||||
if (ret == NULL && name[0] != '_') { /* Avoid inheriting `__call__` and similar. */
|
||||
/* Since this is least common case, handle it last. */
|
||||
PointerRNA r_ptr;
|
||||
if (RNA_property_collection_type_get(&self->ptr, self->prop, &r_ptr)) {
|
||||
|
||||
Reference in New Issue
Block a user