Blender Git Loki

Git Commits -> Revision 16fe92f

Revision 16fe92f by Campbell Barton (master)
March 16, 2009, 15:54 (GMT)
2.5 PyAPI
Support for subclassing blenders operator, to be registered as a new operator.

Still need to...
* add constants like Operator.FINISHED
* wrap context (with rna?)
* poll() cant work right now because there is no way to access the operatorType that holds the python class.
* Only float, int and bool properties can be added so far.

working example operator.
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/WinterCamp/TechnicalDesign#Operator_Example_Code

Commit Details:

Full Hash: 16fe92f86828d6ccec90ad4d8a1995afaf616964
SVN Revision: 19314
Parent Commit: 133e882
Lines Changed: +404, -160

6 Modified Paths:

/source/blender/python/intern/bpy_interface.c (+16, -0) (Diff)
/source/blender/python/intern/bpy_operator.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_opwrapper.c (+254, -140) (Diff)
/source/blender/python/intern/bpy_rna.c (+116, -16) (Diff)
/source/blender/python/intern/bpy_rna.h (+11, -2) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+6, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021