[Bf-blender-cvs] [aae3b4b67ac] newboolean: Forgot to initialize an intset.

Howard Trickey noreply at git.blender.org
Mon Dec 2 15:05:44 CET 2019


Commit: aae3b4b67ac7933e5f62d6af05446fe5655e122a
Author: Howard Trickey
Date:   Mon Nov 11 09:34:36 2019 -0500
Branches: newboolean
https://developer.blender.org/rBaae3b4b67ac7933e5f62d6af05446fe5655e122a

Forgot to initialize an intset.

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

M	source/blender/bmesh/tools/bmesh_boolean.c

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

diff --git a/source/blender/bmesh/tools/bmesh_boolean.c b/source/blender/bmesh/tools/bmesh_boolean.c
index 8302513bc58..fbcffc187c2 100644
--- a/source/blender/bmesh/tools/bmesh_boolean.c
+++ b/source/blender/bmesh/tools/bmesh_boolean.c
@@ -2668,6 +2668,7 @@ static PartPartIntersect *self_intersect_part_and_ppis(BoolState *bs,
       if (eg_len > 1) {
         /* Record the other examples too. They may be needed for boolean operations. */
         f_other_egs = BLI_memarena_alloc(arena, sizeof(*f_other_egs));
+        init_intset(f_other_egs);
         for (i = start; i < start + eg_len; i++) {
           if (!find_in_intintmap(&in_to_fmap, out->faces_orig[i], &f_eg_o)) {
             printf("shouldn't happen, %d not in in_to_fmap\n", out->faces_orig[i]);



More information about the Bf-blender-cvs mailing list