fix [#37034] Triangulate modifier asserts with GHASH_FLAG_ALLOW_DUPES

This commit is contained in:
Dalai Felinto
2013-10-13 00:30:49 +00:00
parent 7c2fae19b4
commit 3a63adb5ff

View File

@@ -900,7 +900,7 @@ void BM_face_triangulate(BMesh *bm, BMFace *f,
}
/* add all but the last face which is swapped and removed (below) */
if (r_faces_new && sf_tri->prev) {
if (r_faces_new && sf_tri->next) {
r_faces_new[nf_i++] = f_new;
}
}