Blender Git Commit Log

Git Commits -> Revision 1e85785

Revision 1e85785 by Campbell Barton (master)
July 10, 2009, 04:25 (GMT)
PyRNA api wasnt using python subclasses most of the time.

Now this will return True
isinstance(bpy.data.meshes[0], bpy.types.Mesh)

Use the StructRNA identifier for the new classes name properties because classes were being named by the data names rather then the type names.

Set the __module__ for the new type which makes printing the class not use the script name where the type is first initialized.
eg: bpy.types.Mesh instead of buttons_object.Mesh

This still isnt quite right since opertators and panels all get their own type, when they should all use an operator type.

Commit Details:

Full Hash: 1e85785704c8602ed90e2feae99b94735eec4d33
SVN Revision: 21474
Parent Commit: 9241559
Lines Changed: +54, -24

3 Modified Paths:

/source/blender/makesrna/intern/rna_access.c (+5, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+48, -24) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021