diff options
author | Hans Goudey <h.goudey@me.com> | 2020-07-02 15:26:59 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-07-02 15:26:59 +0300 |
commit | f58f09c9a910614ef4d3b0ccf7cd7ee777053118 (patch) | |
tree | e6806b1ae4a6e89c060645e93d162faa8a105500 /source/blender/modifiers/intern/MOD_ui_common.c | |
parent | 46ae115b88c458067d48afb5ca5e512a0387e5bf (diff) |
Fix T78513: Modifier apply shortcut not displayed
We can't specify the "apply_as" enum value, even though it's the default.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_ui_common.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_ui_common.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/modifiers/intern/MOD_ui_common.c b/source/blender/modifiers/intern/MOD_ui_common.c index 63ec9a2d929..2f0e70d1bee 100644 --- a/source/blender/modifiers/intern/MOD_ui_common.c +++ b/source/blender/modifiers/intern/MOD_ui_common.c @@ -236,12 +236,10 @@ static void modifier_ops_extra_draw(bContext *C, uiLayout *layout, void *md_v) uiLayoutSetUnitsX(layout, 4.0f); /* Apply. */ - uiItemEnumO(layout, - "OBJECT_OT_modifier_apply", - CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Apply"), - ICON_CHECKMARK, - "apply_as", - MODIFIER_APPLY_DATA); + uiItemO(layout, + CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Apply"), + ICON_CHECKMARK, + "OBJECT_OT_modifier_apply"); /* Apply as shapekey. */ if (BKE_modifier_is_same_topology(md) && !BKE_modifier_is_non_geometrical(md)) { |