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:
authorCampbell Barton <ideasman42@gmail.com>2020-09-03 03:07:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-03 03:07:39 +0300
commit99c3ac17f2011f8c554a98ed8f9010a7befc884c (patch)
treeed13abe2ab4d86f561a1df2cef00d9348fec1870 /source/blender/modifiers/intern/MOD_boolean.c
parent14e2596d219d9bc31b356c9ed6c46d68b8560f42 (diff)
Modifiers: default to exact boolean method ignoring build options
This change doesn't impact release builds, in general avoid having defaults depend on build options since it means files from different builds won't match.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_boolean.c')
-rw-r--r--source/blender/modifiers/intern/MOD_boolean.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.c b/source/blender/modifiers/intern/MOD_boolean.c
index 1a6ceefe5e8..87489c90de3 100644
--- a/source/blender/modifiers/intern/MOD_boolean.c
+++ b/source/blender/modifiers/intern/MOD_boolean.c
@@ -76,11 +76,7 @@ static void initData(ModifierData *md)
bmd->double_threshold = 1e-6f;
bmd->operation = eBooleanModifierOp_Difference;
-#ifdef WITH_GMP
bmd->solver = eBooleanModifierSolver_Exact;
-#else
- bmd->solver = eBooleanModifierSolver_Fast;
-#endif
}
static bool isDisabled(const struct Scene *UNUSED(scene),
@@ -322,12 +318,12 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
}
#ifdef WITH_GMP
- bool use_exact = bmd->solver == eBooleanModifierSolver_Exact;
+ const bool use_exact = bmd->solver == eBooleanModifierSolver_Exact;
#else
if (bmd->solver == eBooleanModifierSolver_Exact) {
BKE_modifier_set_error(md, "Compiled without GMP, using fast solver");
}
- bool use_exact = false;
+ const bool use_exact = false;
#endif
if (use_exact) {