diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-07-17 10:20:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-07-17 10:20:54 +0300 |
commit | f942511fd24b8c55ff60d393737f5fa2c1c5fc44 (patch) | |
tree | 4247075c9295a63b6a0372c55cecad5f21907bdf /source | |
parent | ab5be294cec70d48ca73405f6c1641d0007035df (diff) |
Manipulator: allow ID-writing for most callbacks
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm_manipulator.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_manipulator.c b/source/blender/makesrna/intern/rna_wm_manipulator.c index 3042553ed0e..6efed5c1150 100644 --- a/source/blender/makesrna/intern/rna_wm_manipulator.c +++ b/source/blender/makesrna/intern/rna_wm_manipulator.c @@ -931,7 +931,7 @@ static void rna_def_manipulator(BlenderRNA *brna, PropertyRNA *cprop) }; func = RNA_def_function(srna, "modal", NULL); RNA_def_function_ui_description(func, ""); - RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL); + RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL | FUNC_ALLOW_WRITE); parm = RNA_def_pointer(func, "context", "Context", "", ""); RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); parm = RNA_def_pointer(func, "event", "Event", "", ""); @@ -947,12 +947,12 @@ static void rna_def_manipulator(BlenderRNA *brna, PropertyRNA *cprop) /* wmManipulator.setup */ func = RNA_def_function(srna, "setup", NULL); RNA_def_function_ui_description(func, ""); - RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL); + RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL | FUNC_ALLOW_WRITE); /* wmManipulator.invoke */ func = RNA_def_function(srna, "invoke", NULL); RNA_def_function_ui_description(func, ""); - RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL); + RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL | FUNC_ALLOW_WRITE); parm = RNA_def_pointer(func, "context", "Context", "", ""); RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); parm = RNA_def_pointer(func, "event", "Event", "", ""); @@ -961,7 +961,7 @@ static void rna_def_manipulator(BlenderRNA *brna, PropertyRNA *cprop) /* wmManipulator.exit */ func = RNA_def_function(srna, "exit", NULL); RNA_def_function_ui_description(func, ""); - RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL); + RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL | FUNC_ALLOW_WRITE); parm = RNA_def_pointer(func, "context", "Context", "", ""); RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); parm = RNA_def_boolean(func, "cancel", 0, "Cancel, otherwise confirm", ""); @@ -981,7 +981,7 @@ static void rna_def_manipulator(BlenderRNA *brna, PropertyRNA *cprop) }; func = RNA_def_function(srna, "select", NULL); RNA_def_function_ui_description(func, ""); - RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL); + RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL | FUNC_ALLOW_WRITE); parm = RNA_def_pointer(func, "context", "Context", "", ""); RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); parm = RNA_def_enum(func, "action", select_actions, 0, "Action", "Selection action to execute"); |