[Bf-blender-cvs] [ccbf858bb8f] master: Fix T77487: Only disable Multires Buttons in Edit Mode

Hans Goudey noreply at git.blender.org
Sun Jun 7 17:50:07 CEST 2020


Commit: ccbf858bb8ffa81c6adbcb8ab667c5b87f96a182
Author: Hans Goudey
Date:   Sun Jun 7 11:49:38 2020 -0400
Branches: master
https://developer.blender.org/rBccbf858bb8ffa81c6adbcb8ab667c5b87f96a182

Fix T77487: Only disable Multires Buttons in Edit Mode

Previously the operator buttons were disabled in every mode but
edit mode and sculpt mode.

===================================================================

M	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);



More information about the Bf-blender-cvs mailing list