Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-05-06 22:25:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-05-06 22:25:56 +0400
commitc9ca41c6f1dd4734ea6c7566ebd61f82bd41633f (patch)
treee653ddfbde09c6d6dcd40f631afd4a9113d26da3 /source/blender/windowmanager/intern/wm_files.c
parent294e82446a64eb497fd725c84269bccb0510ad86 (diff)
dont write blender recent file list or save quit.blend when running in background mode.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 30a37301266..c981836a8ed 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -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();