Blender Git Loki
Git Commits -> Revision 8cee328
Revision 8cee328 by Campbell Barton (master) June 6, 2011, 17:50 (GMT) |
Support for update callbacks in python defined RNA properties as discussed last meeting. This means script authors can perform actions using these callbacks rather then on drawing which puts blender in a readonly state. Simple example: import bpy def up_func(self, context): print("test") bpy.types.Scene.testprop = bpy.props.FloatProperty(update=up_func) bpy.context.scene.testprop = 11 # prints -> test |
Commit Details:
Full Hash: 8cee3285460b82a5f64901a8610b07b63bd95701
SVN Revision: 37260
Parent Commit: 0c1298f
Lines Changed: +273, -65
7 Modified Paths:
/source/blender/makesrna/intern/rna_access.c (+13, -1) (Diff)
/source/blender/makesrna/intern/rna_define.c (+11, -0) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+4, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/makesrna/RNA_define.h (+3, -0) (Diff)
/source/blender/makesrna/RNA_types.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_props.c (+240, -64) (Diff)
/source/blender/makesrna/intern/rna_define.c (+11, -0) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+4, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/makesrna/RNA_define.h (+3, -0) (Diff)
/source/blender/makesrna/RNA_types.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_props.c (+240, -64) (Diff)