From 47beb68a0fbeecf0135efd5a356b6ece03e24457 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 1 Sep 2009 00:52:03 +0000 Subject: Open recent list was arseabout, only adding files on save, rather then open. This is problematic for a few reasons... * I'd often save a blendfile only so it would appier in the open recent menu. * Saving files (when you dont need to) makes access times less useful. * binary diff's in SVN dont give any useful info. Sometimes I wasnt sure if I actually edited or saves for fast re-opening. * Testing 2.4x files with animation data in 2.5 can loose info. * Its not logical and other apps dont work this way. Also made the recent file list in the file browser display the most recent item first (like the open recent menu). --- source/blender/windowmanager/intern/wm_files.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 9c30c99bbdd..b98717c8629 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -96,6 +96,7 @@ #include "wm.h" #include "wm_window.h" +static void writeBlog(void); /* To be able to read files without windows closing, opening, moving we try to prepare for worst case: @@ -256,7 +257,10 @@ void WM_read_file(bContext *C, char *name, ReportList *reports) if(retval==2) wm_init_userdef(); // in case a userdef is read from regular .blend - if (retval!=0) G.relbase_valid = 1; + if (retval!=0) { + G.relbase_valid = 1; + writeBlog(); + } // XXX undo_editmode_clear(); BKE_reset_undo(); -- cgit v1.2.3