From fc7944f436657ce4a9a479aff3d5903b79bd6ede Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 1 Jan 2009 15:52:51 +0000 Subject: RNA * Added support for sending notifiers and updates when setting RNA properties. Per property, there is a notifier NC_/ND_ flag, and a function that is called. Currently only used for Object.loc/rot/size. * RNA_property_update that does this is not automatically called in every _set function, it has do be done separate, and is being done by buttons with RNA data. * Perhaps for python there could be a trick to accumulate these flags rather than update each time, though for now the python RNA code could just do them everytime. Did not add these calls in the python code yet because it needs context, not sure where to get that from? --- source/blender/makesrna/intern/rna_controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_controller.c') diff --git a/source/blender/makesrna/intern/rna_controller.c b/source/blender/makesrna/intern/rna_controller.c index eb32877b6c4..dc8f6c4538f 100644 --- a/source/blender/makesrna/intern/rna_controller.c +++ b/source/blender/makesrna/intern/rna_controller.c @@ -81,7 +81,7 @@ void RNA_def_controller(BlenderRNA *brna) srna= RNA_def_struct(brna, "Controller", NULL); RNA_def_struct_ui_text(srna, "Controller", "logic brick to connect 'Sensors' to 'Actuators'"); RNA_def_struct_sdna(srna, "bController"); - RNA_def_struct_funcs(srna, NULL, "rna_Controller_refine"); + RNA_def_struct_refine_func(srna, "rna_Controller_refine"); prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); RNA_def_property_ui_text(prop, "Name", ""); -- cgit v1.2.3