Fix T54098: Crash existing /w dyntopo sculpt
[blender.git] / source / blender / editors / mesh / editmesh_tools.c
index 4b4f1b2afeafe9e3fcdba6bff2145c049f03994f..c979a73e9645b70985d681b26fb1dd0885c5b74c 100644 (file)
@@ -3357,7 +3357,11 @@ static int edbm_separate_exec(bContext *C, wmOperator *op)
                                        }
 
                                        if (retval_iter) {
-                                               BM_mesh_bm_to_me(bm_old, me, (&(struct BMeshToMeshParams){0}));
+                                               BM_mesh_bm_to_me(
+                                                       bm_old, me,
+                                                       (&(struct BMeshToMeshParams){
+                                                           .calc_object_remap = true,
+                                                       }));
 
                                                DAG_id_tag_update(&me->id, OB_RECALC_DATA);
                                                WM_event_add_notifier(C, NC_GEOM | ND_DATA, me);