diff options
author | Ton Roosendaal <ton@blender.org> | 2005-01-07 17:51:55 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-01-07 17:51:55 +0300 |
commit | 511b3096111b142b6431597bc5ea4965531b4637 (patch) | |
tree | c2c2ba3af5babe218d022278831ab2a6dff41150 | |
parent | d5118c08fe29423b5106dd76dc58b9f330fcd811 (diff) |
Fix for 2098
The directory where the last file was saved (in .Blog) wasnt added to the
history menu in the FileWindow when using CTRL+O for example. For
convenience, it now alwyas adds this directory to the end of default
history menu, so you can always jump back while browsing in filewindow.
-rw-r--r-- | source/blender/src/usiblender.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index 4c00e2e8fa5..8f92dbb71ff 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -334,7 +334,7 @@ void BIF_read_autosavefile(void) static void readBlog(void) { - char name[FILE_MAXDIR+FILE_MAXFILE]; + char name[FILE_MAXDIR+FILE_MAXFILE], filename[FILE_MAXFILE]; LinkNode *l, *lines; BLI_make_file_string("/", name, BLI_gethome(), ".Blog"); @@ -384,6 +384,12 @@ static void readBlog(void) } fsmenu_append_seperator(); + + /* add last saved file */ + BLI_split_dirfile(G.sce, name, filename); + + fsmenu_insert_entry(name, 0); + BLI_free_file_lines(lines); } |