Merge branch 'master' into blender2.8
[blender.git] / source / blender / python / bmesh / bmesh_py_types.c
index 629c3a3c7a33abcaf65ce45496079d33054e812e..ec787768a57bb36bebe8273d537c03a486aee6bb 100644 (file)
@@ -902,7 +902,11 @@ static PyObject *bpy_bmesh_to_mesh(BPy_BMesh *self, PyObject *args)
 
        bm = self->bm;
 
-       BM_mesh_bm_to_me(bm, me, (&(struct BMeshToMeshParams){0}));
+       BM_mesh_bm_to_me(
+               bm, me,
+               (&(struct BMeshToMeshParams){
+                   .calc_object_remap = true,
+               }));
 
        /* we could have the user do this but if they forget blender can easy crash
         * since the references arrays for the objects derived meshes are now invalid */