Merge branch 'master' into blender2.8
[blender.git] / source / blender / modifiers / intern / MOD_edgesplit.c
index e8ffddb..e1806dc 100644 (file)
@@ -107,8 +107,7 @@ static Mesh *doEdgeSplit(Mesh *mesh, EdgeSplitModifierData *emd, const ModifierE
 
        /* BM_mesh_validate(bm); */ /* for troubleshooting */
 
-       result = BKE_id_new_nomain(ID_ME, mesh->id.name);
-       BM_mesh_bm_to_me(bm, result, &((struct BMeshToMeshParams){0}));
+       result = BKE_bmesh_to_mesh_nomain(bm, &((struct BMeshToMeshParams){0}));
        BM_mesh_free(bm);
 
        result->runtime.cd_dirty_vert |= CD_MASK_NORMAL;