Skip to content
Snippets Groups Projects
Commit b69809c8 authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix T39331: Dissolve vertex crash

parent 32d5d072
Branches
Tags
No related merge requests found
......@@ -205,14 +205,16 @@ bool BM_disk_dissolve(BMesh *bm, BMVert *v)
return false;
}
/* get remaining two faces */
f = e->l->f;
f2 = e->l->radial_next->f;
if (f != f2) {
/* join two remaining faces */
if (!BM_faces_join_pair(bm, f, f2, e, true)) {
return false;
if (e->l) {
/* get remaining two faces */
f = e->l->f;
f2 = e->l->radial_next->f;
if (f != f2) {
/* join two remaining faces */
if (!BM_faces_join_pair(bm, f, f2, e, true)) {
return false;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment