Fix possible endless loop in AutoMerge and Split

This commit is contained in:
Germano Cavalcante 2019-08-28 20:04:26 -03:00
parent a7ac8a22f8
commit 7aed8f69d1
1 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,11 @@ static void edbm_automerge_weld_linked_wire_edges_into_linked_faces(BMesh *bm,
}
edgenet[edgenet_len++] = e;
v_other = BM_edge_other_vert(e, v_other);
if (v_other == v) {
/* Endless loop. */
break;
}
BMEdge *e_next = BM_DISK_EDGE_NEXT(e, v_other);
if (e_next == e) {
/* Vert is wire_endpoint */