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:
authorHans Goudey <h.goudey@me.com>2020-06-29 22:06:13 +0300
committerHans Goudey <h.goudey@me.com>2020-06-29 22:06:13 +0300
commita71d3bd2df15e673872d71ee89b29d46b6ef3563 (patch)
treefa27e379de34d9f4311a94982d0f014aa2f82aeb /source/blender/modifiers
parent1fa40c9f8a81036476d5051b09ff15e27b628012 (diff)
UI: Don't show modifier operation reports on button press
The reports should only show when using shortcuts.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_ui_common.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/source/blender/modifiers/intern/MOD_ui_common.c b/source/blender/modifiers/intern/MOD_ui_common.c
index 563aa3f091f..88e095c549e 100644
--- a/source/blender/modifiers/intern/MOD_ui_common.c
+++ b/source/blender/modifiers/intern/MOD_ui_common.c
@@ -236,15 +236,12 @@ static void modifier_ops_extra_draw(bContext *C, uiLayout *layout, void *md_v)
uiLayoutSetUnitsX(layout, 4.0f);
/* Apply. */
- uiItemFullO(layout,
+ uiItemEnumO(layout,
"OBJECT_OT_modifier_apply",
CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Apply"),
ICON_CHECKMARK,
- NULL,
- WM_OP_INVOKE_DEFAULT,
- 0,
- &op_ptr);
- RNA_boolean_set(&op_ptr, "report", true);
+ "apply_as",
+ MODIFIER_APPLY_DATA);
/* Apply as shapekey. */
if (BKE_modifier_is_same_topology(md) && !BKE_modifier_is_non_geometrical(md)) {
@@ -374,10 +371,7 @@ static void modifier_panel_header(const bContext *C, Panel *panel)
if (modifier_can_delete(md) && !modifier_is_simulation(md)) {
sub = uiLayoutRow(row, false);
uiLayoutSetEmboss(sub, UI_EMBOSS_NONE);
- PointerRNA op_ptr;
- uiItemFullO(
- sub, "OBJECT_OT_modifier_remove", "", ICON_X, NULL, WM_OP_INVOKE_DEFAULT, 0, &op_ptr);
- RNA_boolean_set(&op_ptr, "report", true);
+ uiItemO(sub, "", ICON_X, "OBJECT_OT_modifier_remove");
buttons_number++;
}