Fix T77487: Only disable Multires Buttons in Edit Mode
Previously the operator buttons were disabled in every mode but edit mode and sculpt mode.
This commit is contained in:
parent
00961d062a
commit
ccbf858bb8
Notes:
blender-bot
2023-02-14 07:39:44 +01:00
Referenced by issue #77487, Multires modifier not working properly in Object/Vertex Paint/Weight Paint/Texture Paint modes
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue