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:
authorHoward Trickey <howard.trickey@gmail.com>2020-09-07 21:26:00 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-09-07 21:29:12 +0300
commitde21ab418d69ca82a07ec7c836b1deca09bbd57f (patch)
treea713cb1e6a98b12d309e57addc1965ebc0973984 /source/blender/makesdna/DNA_modifier_types.h
parent19f56cfe6c59e3a54aaf7499fd9072a8790171b7 (diff)
Add a Self option to the Exact boolean modifier. Fixes T52425.
With this option, self-intersections in either or both operands will be handled properly (if both sides are piecewise winding number constant, and maybe some other cases too). In the Boolean tool, this flag was there already but the code forced a unary operation in that case; this commit corrects it to make a binary operation. This flag makes the code slower, which is why it is an option and not an always-on thing.
Diffstat (limited to 'source/blender/makesdna/DNA_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index 2839d826df9..a9f1d5bcfc4 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -863,7 +863,7 @@ typedef struct BooleanModifierData {
struct Object *object;
char operation;
char solver;
- char _pad[1];
+ char flag;
char bm_flag;
float double_threshold;
} BooleanModifierData;
@@ -879,6 +879,10 @@ typedef enum {
eBooleanModifierSolver_Exact = 1,
} BooleanModifierSolver;
+enum {
+ eBooleanModifierFlag_Self = (1 << 0),
+};
+
/* bm_flag only used when G_DEBUG. */
enum {
eBooleanModifierBMeshFlag_BMesh_Separate = (1 << 0),