Correct last commit, check not to split along edges already used

This commit is contained in:
Campbell Barton
2014-05-13 18:35:14 +10:00
parent dd8a9eee3b
commit b12bf2216f

View File

@@ -63,9 +63,13 @@ static int bm_face_connect_verts(BMesh *bm, BMFace *f, const bool check_degenera
}
if (!BM_loop_is_adjacent(l_last, l)) {
BMLoop **l_pair = STACK_PUSH_RET(loops_split);
l_pair[0] = l_last;
l_pair[1] = l;
BMEdge *e;
e = BM_edge_exists(l_last->v, l->v);
if (e == NULL || !BMO_elem_flag_test(bm, e, EDGE_OUT)) {
BMLoop **l_pair = STACK_PUSH_RET(loops_split);
l_pair[0] = l_last;
l_pair[1] = l;
}
}
l_last = l;
}