diff options
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_intersect.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/bmesh/tools/bmesh_intersect.c b/source/blender/bmesh/tools/bmesh_intersect.c index 3398422465c..5ff0fcd51bb 100644 --- a/source/blender/bmesh/tools/bmesh_intersect.c +++ b/source/blender/bmesh/tools/bmesh_intersect.c @@ -1554,7 +1554,12 @@ bool BM_mesh_intersect( BMFace *f = ftable[groups_array[fg]]; float co[3]; int hits; - int side = test_fn(f, user_data) == 0; + int side = test_fn(f, user_data); + + if (side == -1) { + continue; + } + BLI_assert(ELEM(side, 0, 1)); // BM_face_calc_center_mean(f, co); BM_face_calc_point_in_face(f, co); |