Merge branch 'master' into blender2.8
This commit is contained in:
@@ -6965,15 +6965,7 @@ static PyObject *pyrna_basetype_dir(BPy_BaseTypeRNA *self)
|
||||
RNA_PROP_BEGIN (&self->ptr, itemptr, self->prop)
|
||||
{
|
||||
StructRNA *srna = itemptr.data;
|
||||
StructRNA *srna_base = RNA_struct_base(itemptr.data);
|
||||
/* skip own operators, these double up [#29666] */
|
||||
if (ELEM(srna_base, &RNA_Operator, &RNA_Manipulator)) {
|
||||
/* do nothing */
|
||||
}
|
||||
else {
|
||||
/* add to python list */
|
||||
PyList_APPEND(ret, PyUnicode_FromString(RNA_struct_identifier(srna)));
|
||||
}
|
||||
PyList_APPEND(ret, PyUnicode_FromString(RNA_struct_identifier(srna)));
|
||||
}
|
||||
RNA_PROP_END;
|
||||
|
||||
|
Reference in New Issue
Block a user