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:
authorCampbell Barton <ideasman42@gmail.com>2020-02-11 06:01:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-11 06:10:22 +0300
commit50d5c03e2d14b852c6afd3046aa8428bede85efd (patch)
tree220714fa3230b87f8253b420098ba89ace42ccdc /source/blender/editors/object
parentad2a8400e9a263acf924311ce1fb050b0e1eb415 (diff)
UI: Use popup dialog for make single user from operator search
Use a popup since the default action was to do nothing, the user would always need to access the redo panel. Resolves T73711.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_relations.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index 687634801b3..8ee061efc08 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -2645,8 +2645,11 @@ void OBJECT_OT_make_single_user(wmOperatorType *ot)
ot->description = "Make linked data local to each object";
ot->idname = "OBJECT_OT_make_single_user";
+ /* Note that the invoke callback is only used from operator search,
+ * otherwise this does nothing by default. */
+
/* api callbacks */
- ot->invoke = WM_menu_invoke;
+ ot->invoke = WM_operator_props_popup_confirm;
ot->exec = make_single_user_exec;
ot->poll = ED_operator_objectmode;