diff options
author | Hans Goudey <h.goudey@me.com> | 2020-06-07 18:49:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-06-07 18:49:38 +0300 |
commit | ccbf858bb8ffa81c6adbcb8ab667c5b87f96a182 (patch) | |
tree | 33b66448121833f436dc6c9d9a2e7672fe6ca93c | |
parent | 00961d062a4b0624135db79a0607d69128e79511 (diff) |
Fix T77487: Only disable Multires Buttons in Edit Mode
Previously the operator buttons were disabled in every mode but
edit mode and sculpt mode.
-rw-r--r-- | source/blender/modifiers/intern/MOD_multires.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |