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-10-25 00:44:59 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-10-25 00:44:59 +0300
commit05129bc821fd386b211e3e5ac981f97eb81d79e7 (patch)
tree7b4f8e8d2dda7b4622adfb897fae8110dd02fc2b
parent2f9068449f97d8a4ca1a8ccc4e0b5bdccb3bffe4 (diff)
Fix T81999, Boolean Exact+Self Difference fails.
A cell with winding number > 1 for the second operand was incorrectly included in the output.
-rw-r--r--source/blender/blenlib/intern/mesh_boolean.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/mesh_boolean.cc b/source/blender/blenlib/intern/mesh_boolean.cc
index 169687cf9d1..bad0b84d10f 100644
--- a/source/blender/blenlib/intern/mesh_boolean.cc
+++ b/source/blender/blenlib/intern/mesh_boolean.cc
@@ -2068,7 +2068,7 @@ static bool apply_bool_op(BoolOpType bool_optype, const Array<int> &winding)
return true;
}
for (int i = 1; i < nw; ++i) {
- if (winding[i] == 1) {
+ if (winding[i] >= 1) {
return false;
}
}