Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-04-23 16:14:51 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-04-23 16:15:53 +0300
commita7960db471011fbf67174b4ae7a64dd2052d20d1 (patch)
tree6a523628f9b840b1dde36ac395c23715966d1190 /source/blender/editors/interface/interface_ops.c
parent054d7038cc97ee022baec6aef7c6e6deff0e56f1 (diff)
Static Overrides: hide/deactivate all but 'REPLACE' operation.
Others remain in code for now, just not exposed to user.
Diffstat (limited to 'source/blender/editors/interface/interface_ops.c')
-rw-r--r--source/blender/editors/interface/interface_ops.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c
index 9e31e8729d5..ef328c2cd5e 100644
--- a/source/blender/editors/interface/interface_ops.c
+++ b/source/blender/editors/interface/interface_ops.c
@@ -540,7 +540,12 @@ static int override_type_set_button_exec(bContext *C, wmOperator *op)
static int override_type_set_button_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
{
+#if 0 /* Disabled for now */
return WM_menu_invoke_ex(C, op, WM_OP_INVOKE_DEFAULT);
+#else
+ RNA_enum_set(op->ptr, "type", IDOVERRIDESTATIC_OP_REPLACE);
+ return override_type_set_button_exec(C, op);
+#endif
}
static void UI_OT_override_type_set_button(wmOperatorType *ot)
@@ -562,7 +567,7 @@ static void UI_OT_override_type_set_button(wmOperatorType *ot)
RNA_def_boolean(ot->srna, "all", 1, "All", "Reset to default values all elements of the array");
ot->prop = RNA_def_enum(ot->srna, "type", override_type_items, UIOverride_Type_Replace,
"Type", "Type of override operation");
- /* TODO: add itemf callback, not all aoptions are available for all data types... */
+ /* TODO: add itemf callback, not all options are available for all data types... */
}