diff options
author | Hans Goudey <h.goudey@me.com> | 2020-08-29 00:41:13 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-08-29 00:41:13 +0300 |
commit | 141a3e6d47ab1b030a8894aec82767f233d4d9d6 (patch) | |
tree | e119967a85bc0510310d496aa4888f3e6d710071 /source/blender | |
parent | f34653e49801a12d1aef9b68279df633422ecc38 (diff) |
Boolean Modifier: Reorder properties
Properties that display conditionally depending on other properties
should generally be lower down so the movement of buttons as
settings are tweaked is less intrusive.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/modifiers/intern/MOD_boolean.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.c b/source/blender/modifiers/intern/MOD_boolean.c index 0c8b8f6af3e..dbdcaccf6f1 100644 --- a/source/blender/modifiers/intern/MOD_boolean.c +++ b/source/blender/modifiers/intern/MOD_boolean.c @@ -392,17 +392,17 @@ static void panel_draw(const bContext *C, Panel *panel) uiItemR(layout, &ptr, "object", 0, NULL, ICON_NONE); -#ifdef WITH_GMP - bool use_exact = RNA_enum_get(&ptr, "solver") == eBooleanModifierSolver_Exact; -#else +#ifndef WITH_GMP bool use_exact = false; +#else + bool use_exact = RNA_enum_get(&ptr, "solver") == eBooleanModifierSolver_Exact; + + uiItemR(layout, &ptr, "solver", UI_ITEM_R_EXPAND, NULL, ICON_NONE); #endif + if (!use_exact) { uiItemR(layout, &ptr, "double_threshold", 0, NULL, ICON_NONE); } -#ifdef WITH_GMP - uiItemR(layout, &ptr, "solver", UI_ITEM_R_EXPAND, NULL, ICON_NONE); -#endif if (G.debug) { uiLayout *col = uiLayoutColumn(layout, true); |