Correct error in last boolean commit

Side was flipped
This commit is contained in:
Campbell Barton 2015-12-12 13:15:09 +11:00
parent aae93ae4c6
commit 189032c724
2 changed files with 2 additions and 1 deletions

View File

@ -852,7 +852,7 @@ static int bm_face_split_edgenet_find_connection(
* so return a fall-back vertex in that case.
*/
const float dir[3] = {[SORT_AXIS] = direction_sign ? 1.0 : -1.0f};
const float dir[3] = {[SORT_AXIS] = direction_sign ? 1.0f : -1.0f};
BMEdge *e_hit = test_edges_isect_2d_ray(args, v_origin, dir);
BMVert *v_other = NULL;

View File

@ -1560,6 +1560,7 @@ bool BM_mesh_intersect(
continue;
}
BLI_assert(ELEM(side, 0, 1));
side = !side;
// BM_face_calc_center_mean(f, co);
BM_face_calc_point_in_face(f, co);