Blender Git Loki
Git Commits -> Revision 215f803
Revision 215f803 by Campbell Barton (master) August 22, 2009, 17:06 (GMT) |
bpy's __rna__ attribute doesnt work as it should, since the parent classes __rna__ overrides the subtypes. For now have pyrna_struct_as_srna look in the dict first for __rna__ before using PyDict_GetItemString. Somehow __rna__ is not calling the pyrna_struct_getattro function, python find it first. The only relyable way to get the rna from python currently is. bpy.types.SomeType.__dict__['__rna__'] |
Commit Details:
Full Hash: 215f80361cfeb294aed9e93cb6899d18c28d8bbf
SVN Revision: 22707
Parent Commit: 98e9ddb
Lines Changed: +10, -1
1 Modified Path:
/source/blender/python/intern/bpy_rna.c (+10, -1) (Diff)