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-07 18:49:38 +0300
committerHans Goudey <h.goudey@me.com>2020-06-07 18:49:38 +0300
commitccbf858bb8ffa81c6adbcb8ab667c5b87f96a182 (patch)
tree33b66448121833f436dc6c9d9a2e7672fe6ca93c /source/blender/modifiers/intern/MOD_multires.c
parent00961d062a4b0624135db79a0607d69128e79511 (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.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_multires.c')
-rw-r--r--source/blender/modifiers/intern/MOD_multires.c2
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);