forked from bartvdbraak/blender
Fix error in recent check for duplicate tris
This commit is contained in:
parent
e8b3a14dfb
commit
69cdddd4cf
@ -940,14 +940,10 @@ void BM_face_triangulate(
|
|||||||
if (l_new->radial_next != l_new) {
|
if (l_new->radial_next != l_new) {
|
||||||
BMLoop *l_iter = l_new->radial_next;
|
BMLoop *l_iter = l_new->radial_next;
|
||||||
do {
|
do {
|
||||||
if (UNLIKELY(l_new->prev->v == l_iter->prev->v)) {
|
if (UNLIKELY((l_iter->f->len == 3) && (l_new->prev->v == l_iter->prev->v))) {
|
||||||
if (UNLIKELY(i == last_tri)) {
|
/* Check the last tri because we swap last f_new with f at the end... */
|
||||||
/* Because we swap last f_new with f at the end... */
|
BLI_linklist_prepend(r_faces_double, (i != last_tri) ? f_new : f);
|
||||||
BLI_linklist_prepend(r_faces_double, f);
|
break;
|
||||||
}
|
|
||||||
else {
|
|
||||||
BLI_linklist_prepend(r_faces_double, f_new);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} while ((l_iter = l_iter->radial_next) != l_new);
|
} while ((l_iter = l_iter->radial_next) != l_new);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user