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.
This commit is contained in:
Hans Goudey 2020-08-28 16:41:13 -05:00
parent f34653e498
commit 141a3e6d47
1 changed files with 6 additions and 6 deletions

View File

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