Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / object / object_modes.c
index 66c2ad5fa9ba6fba8ab86bc4049424a36cb303b4..e9bd6fbce8fd3dfba8b2b55e2a8b34c4342d4e67 100644 (file)
@@ -209,7 +209,7 @@ static bool ed_object_mode_generic_exit_ex(
                        if (only_test) {
                                return true;
                        }
-                       ED_object_editmode_exit_ex(scene, ob, EM_FREEDATA);
+                       ED_object_editmode_exit_ex(bmain, scene, ob, EM_FREEDATA);
                }
        }
        else if (ob->mode & OB_MODE_VERTEX_PAINT) {