[Bf-blender-cvs] [f58f09c9a91] master: Fix T78513: Modifier apply shortcut not displayed
Hans Goudey
noreply at git.blender.org
Thu Jul 2 14:27:06 CEST 2020
Commit: f58f09c9a910614ef4d3b0ccf7cd7ee777053118
Author: Hans Goudey
Date: Thu Jul 2 08:26:59 2020 -0400
Branches: master
https://developer.blender.org/rBf58f09c9a910614ef4d3b0ccf7cd7ee777053118
Fix T78513: Modifier apply shortcut not displayed
We can't specify the "apply_as" enum value, even though it's the default.
===================================================================
M source/blender/modifiers/intern/MOD_ui_common.c
===================================================================
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)) {
More information about the Bf-blender-cvs
mailing list