BMesh: correct bmesh_edge_vert_swap

Missed swapping out loops.
This commit is contained in:
Campbell Barton
2015-05-01 06:51:16 +10:00
parent 6111da3629
commit f8bdd8e6a8

View File

@@ -70,6 +70,12 @@ void bmesh_edge_vert_swap(BMEdge *e, BMVert *v_dst, BMVert *v_src)
if (l_iter->v == v_src) {
l_iter->v = v_dst;
}
else if (l_iter->next->v == v_src) {
l_iter->next->v = v_dst;
}
else {
BLI_assert(l_iter->prev->v != v_src);
}
} while ((l_iter = l_iter->radial_next) != l_first);
}