Fix T54098: Crash existing /w dyntopo sculpt
[blender.git] / source / blender / editors / mesh / editmesh_utils.c
index e407d342603241ffffc8fec615e23892e7c7db9b..c4440fa190ad463a6675b6d0e6c1d69227034cf7 100644 (file)
@@ -380,7 +380,10 @@ void EDBM_mesh_load(Object *ob)
                bm->shapenr = 1;
        }
 
-       BM_mesh_bm_to_me(bm, me, (&(struct BMeshToMeshParams){0}));
+       BM_mesh_bm_to_me(
+               bm, me, (&(struct BMeshToMeshParams){
+                   .calc_object_remap = true,
+               }));
 
 #ifdef USE_TESSFACE_DEFAULT
        BKE_mesh_tessface_calc(me);