BMesh: boolean wasn't ignoring hidden faces

Needed for editmode use
This commit is contained in:
Campbell Barton
2015-12-12 00:51:45 +11:00
parent 3c3d38dd02
commit fa32cde8a8

View File

@@ -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);