fix (own issue with recent addition) [#32966] wireframe shading doesn't work right with decimator unsubdivide mode

This commit is contained in:
Campbell Barton
2012-10-25 15:11:02 +00:00
parent d34f2410a1
commit e0a4ca00ac

View File

@@ -143,8 +143,10 @@ static int bm_vert_dissolve_fan(BMesh *bm, BMVert *v)
for (i = 0; i < tot_loop; i++) {
BMLoop *l = f_loop[i];
if (l->f->len > 3) {
BMLoop *l_new;
BLI_assert(l->prev->v != l->next->v);
BM_face_split(bm, l->f, l->prev->v, l->next->v, NULL, NULL, TRUE);
BM_face_split(bm, l->f, l->prev->v, l->next->v, &l_new, NULL, TRUE);
BM_elem_flag_enable(l_new->e, l->e->head.hflag | l->prev->e->head.hflag);
}
}