Python API: fix for help() failing on bpy instances

Caused by missing __name__ from bpy.types (alternate method to patch D232)
This commit is contained in:
Campbell Barton
2014-01-20 18:13:15 +11:00
parent a696a0ff1e
commit 2e01f38885

View File

@@ -6653,6 +6653,11 @@ PyObject *BPY_rna_types(void)
return NULL;
}
/* static members for the base class */
/* add __name__ since help() expects its */
PyDict_SetItem(pyrna_basetype_Type.tp_dict, bpy_intern_str___name__, bpy_intern_str_bpy_types);
self = (BPy_BaseTypeRNA *)PyObject_NEW(BPy_BaseTypeRNA, &pyrna_basetype_Type);
/* avoid doing this lookup for every getattr */