Blender Git Commit Log
Git Commits -> Revision 64512d3
Revision 64512d3 by Campbell Barton (master) March 11, 2009, 17:28 (GMT) |
WIP PyAPI from winter camp discussions, make subtypes of the base RNA python type, eventually allowing us to have python defined RNA classes in python - lux/pov/renderman materials, lamps etc as well as operators. At the moment there are 2 ways to do this, The first is like subclassing from python, another (disabled) method copies the base PyTypeObject struct and makes some changes. The PyType is stored in the RNA Struct for reuse, right now there are no access functions - needs to be improved. Added a python script for printing all blend file data to the console which helps testing the api. dir(rna) wont work for python 2.x now, use rna.__dir__() instead. |
Commit Details:
Full Hash: 64512d3e8e9f950b8249deb506eb243345dc107e
SVN Revision: 19259
Parent Commit: 891c3bc
Lines Changed: +483, -39
2 Added Paths:
/source/blender/python/rna_dump.py (+112, -0) (View)
/source/blender/python/simple_enum_gen.py (+65, -0) (View)
/source/blender/python/simple_enum_gen.py (+65, -0) (View)
8 Modified Paths:
/source/blender/makesrna/intern/makesrna.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+4, -0) (Diff)
/source/blender/python/epy_doc_gen.py (+1, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+6, -1) (Diff)
/source/blender/python/intern/bpy_operator.c (+2, -3) (Diff)
/source/blender/python/intern/bpy_rna.c (+275, -33) (Diff)
/source/blender/python/intern/bpy_rna.h (+14, -0) (Diff)
/source/blender/python/intern/bpy_util.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+4, -0) (Diff)
/source/blender/python/epy_doc_gen.py (+1, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+6, -1) (Diff)
/source/blender/python/intern/bpy_operator.c (+2, -3) (Diff)
/source/blender/python/intern/bpy_rna.c (+275, -33) (Diff)
/source/blender/python/intern/bpy_rna.h (+14, -0) (Diff)
/source/blender/python/intern/bpy_util.c (+1, -1) (Diff)