diff options
Diffstat (limited to 'source/blender/blenkernel/intern/modifiers_bmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/modifiers_bmesh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/modifiers_bmesh.c b/source/blender/blenkernel/intern/modifiers_bmesh.c index f69e0efcea6..74a6e920d69 100644 --- a/source/blender/blenkernel/intern/modifiers_bmesh.c +++ b/source/blender/blenkernel/intern/modifiers_bmesh.c @@ -193,6 +193,9 @@ BMEditMesh *CDDM_To_BMesh(DerivedMesh *dm, BMEditMesh *existing) verts[j] = vtable[dliter->vindex]; edges[j] = etable[dliter->eindex]; } + + if (j < 2) + break; f = BM_Make_Ngon(bm, verts[0], verts[1], edges, dfiter->len, 0); f->head.flag = MEFlags_To_BMFlags(dfiter->flags, BM_FACE); |