merges changes to revision 23820
[blender-staging.git] / source / blender / windowmanager / intern / wm_files.c
index fef29fafad10d2cc7a4a60cae9642458f3116f76..a4d0bcd9998402664bb8820f5760659531eaab2c 100644 (file)
@@ -539,7 +539,7 @@ void WM_write_file(bContext *C, char *target, int compress, ReportList *reports)
                packAll(G.main, reports);
        }
        
-       ED_object_exit_editmode(C, 0);
+       ED_object_exit_editmode(C, EM_DO_UNDO);
 
        do_history(di, reports);