[Bf-blender-cvs] [1c653a0315b] blender-v2.91-release: Fix T81999, Boolean Exact+Self Difference fails.

Howard Trickey noreply at git.blender.org
Sat Oct 24 23:40:33 CEST 2020


Commit: 1c653a0315b04269a2e7385efad6a033ddad2420
Author: Howard Trickey
Date:   Sat Oct 24 17:36:38 2020 -0400
Branches: blender-v2.91-release
https://developer.blender.org/rB1c653a0315b04269a2e7385efad6a033ddad2420

Fix T81999, Boolean Exact+Self Difference fails.

A cell with winding number > 1 for the second operand was incorrectly
included in the output.

===================================================================

M	source/blender/blenlib/intern/mesh_boolean.cc

===================================================================

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;
         }
       }



More information about the Bf-blender-cvs mailing list