Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / mesh.c
index b325d8d..e83f2d9 100644 (file)
@@ -728,8 +728,9 @@ BMesh *BKE_mesh_to_bmesh(
 
 Mesh *BKE_bmesh_to_mesh_nomain(BMesh *bm, const struct BMeshToMeshParams *params)
 {
+       BLI_assert(params->calc_object_remap == false);
        Mesh *mesh = BKE_id_new_nomain(ID_ME, NULL);
-       BM_mesh_bm_to_me(bm, mesh, params);
+       BM_mesh_bm_to_me(NULL, bm, mesh, params);
        return mesh;
 }