dont write blender recent file list or save quit.blend when running in background mode.

This commit is contained in:
2010-05-06 18:25:56 +00:00
parent 294e82446a
commit c9ca41c6f1
2 changed files with 5 additions and 3 deletions

View File

@@ -286,7 +286,8 @@ void WM_read_file(bContext *C, char *name, ReportList *reports)
if (retval!=0) {
G.relbase_valid = 1;
writeBlog();
if(!G.background) /* assume automated tasks with background, dont write recent file list */
writeBlog();
}
// XXX undo_editmode_clear();

View File

@@ -317,8 +317,9 @@ void WM_exit(bContext *C)
// if (copybuf) MEM_freeN(copybuf);
// if (copybufinfo) MEM_freeN(copybufinfo);
BKE_undo_save_quit(); // saves quit.blend if global undo is on
if (!G.background) {
BKE_undo_save_quit(); // saves quit.blend if global undo is on
}
BKE_reset_undo();
ED_file_exit(); /* for fsmenu */