Blender Git Commit Log

Git Commits -> Revision 35c2267

Revision 35c2267 by Lukas Toenne (master)
December 20, 2012, 09:33 (GMT)
Support for actual class methods in the RNA/bpy. Previously all functions with FUNC_NO_SELF were treated as static methods, which is not sufficient for getting actual type information if the function can not be generated in advance in makesrna. Now the FUNC_USE_SELF_TYPE flag can be set in addition to FUNC_NO_SELF (if FUNC_NO_SELF is not set, FUNC_USE_SELF_TYPE has no effect). Such functions will be interpreted as class methods and must take a StructRNA pointer argument. This pointer is the same as the type member in PointerRNA, but can be passed without an actual data/id instance.

Commit Details:

Full Hash: 35c2267aee84d086c00574496b52e9c0641e320d
SVN Revision: 53199
Parent Commit: b3dc1d5
Lines Changed: +65, -20

4 Modified Paths:

/source/blender/makesrna/intern/makesrna.c (+25, -1) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+13, -1) (Diff)
/source/blender/makesrna/RNA_types.h (+4, -3) (Diff)
/source/blender/python/intern/bpy_rna.c (+23, -15) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021