diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-25 19:11:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-25 19:11:02 +0400 |
commit | e0a4ca00ac289152b5b9dd125cad514d2cd7bbdd (patch) | |
tree | c946afabf16c7b82660df6b5b41bf6b82ed16094 /source/blender | |
parent | d34f2410a16c85a1b6a35a72febdec4cd21d2157 (diff) |
fix (own issue with recent addition) [#32966] wireframe shading doesn't work right with decimator unsubdivide mode
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_decimate_unsubdivide.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_decimate_unsubdivide.c b/source/blender/bmesh/intern/bmesh_decimate_unsubdivide.c index 18bfa5159bf..0cb200cc997 100644 --- a/source/blender/bmesh/intern/bmesh_decimate_unsubdivide.c +++ b/source/blender/bmesh/intern/bmesh_decimate_unsubdivide.c @@ -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); } } |