dont write blender recent file list or save quit.blend when running in background mode.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user