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-08-29 00:41:13 +0300
committerHans Goudey <h.goudey@me.com>2020-08-29 00:41:13 +0300
commit141a3e6d47ab1b030a8894aec82767f233d4d9d6 (patch)
treee119967a85bc0510310d496aa4888f3e6d710071
parentf34653e49801a12d1aef9b68279df633422ecc38 (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.
-rw-r--r--source/blender/modifiers/intern/MOD_boolean.c12
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);