From ccbf858bb8ffa81c6adbcb8ab667c5b87f96a182 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Sun, 7 Jun 2020 11:49:38 -0400 Subject: Fix T77487: Only disable Multires Buttons in Edit Mode Previously the operator buttons were disabled in every mode but edit mode and sculpt mode. --- source/blender/modifiers/intern/MOD_multires.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/modifiers/intern/MOD_multires.c') diff --git a/source/blender/modifiers/intern/MOD_multires.c b/source/blender/modifiers/intern/MOD_multires.c index 612f518d533..f1cba313583 100644 --- a/source/blender/modifiers/intern/MOD_multires.c +++ b/source/blender/modifiers/intern/MOD_multires.c @@ -322,7 +322,7 @@ static void panel_draw(const bContext *C, Panel *panel) uiItemS(layout); split = uiLayoutSplit(layout, 0.5f, false); - uiLayoutSetEnabled(split, ELEM(RNA_enum_get(&ob_ptr, "mode"), OB_MODE_EDIT, OB_MODE_SCULPT)); + uiLayoutSetEnabled(split, RNA_enum_get(&ob_ptr, "mode") != OB_MODE_EDIT); col = uiLayoutColumn(split, false); col2 = uiLayoutColumn(split, false); -- cgit v1.2.3