Page Menu
Home
Search
Configure Global Search
Log In
Files
F12500
patch-OS-MRU.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Harley Acheson (harley)
Nov 13 2013, 2:34 PM
Size
1 KB
Subscribers
None
patch-OS-MRU.txt
View Options
Index: source/blender/windowmanager/intern/wm_files.c
===================================================================
--- source/blender/windowmanager/intern/wm_files.c (revision 29260)
+++ source/blender/windowmanager/intern/wm_files.c (working copy)
@@ -104,6 +104,19 @@
static void writeBlog(void);
+
+/* Some operating systems keep a list of recent files, but are not
+ updated correctly since we don't use OS-supplied dialogs for open/save
+*/
+static void AddToOSRecentDocsList(char *filename)
+{
+ #ifdef WIN32
+ /* SHARD_PATHA is for ansi strings, use SHARD_PATHW for wide */
+ SHAddToRecentDocs(SHARD_PATHA,filename);
+ #endif
+}
+
+
/* To be able to read files without windows closing, opening, moving
we try to prepare for worst case:
- active window gets active screen from file
@@ -291,8 +304,10 @@
if (retval!=0) {
G.relbase_valid = 1;
- if(!G.background) /* assume automated tasks with background, dont write recent file list */
+ if(!G.background) { /* assume automated tasks with background, dont write recent file list */
writeBlog();
+ AddToOSRecentDocsList(name); /* Tell OS to add this to its MRU list */
+ }
}
// XXX undo_editmode_clear();
@@ -599,6 +614,7 @@
else G.fileflags &= ~G_FILE_AUTOPLAY;
writeBlog();
+ AddToOSRecentDocsList(target); /* Tell OS to add this to its MRU list */
/* run this function after because the file cant be written before the blend is */
if (ibuf_thumb) {
Index: config/win32-vc-config.py
===================================================================
--- config/win32-vc-config.py (revision 29260)
+++ config/win32-vc-config.py (working copy)
@@ -79,7 +79,7 @@
BF_PNG_LIB = 'libpng_st'
BF_PNG_LIBPATH = '${BF_PNG}/lib'
-WITH_BF_TIFF = True
+WITH_BF_TIFF = False
BF_TIFF = LIBDIR + '/tiff'
BF_TIFF_INC = '${BF_TIFF}/include'
BF_TIFF_LIB = 'libtiff'
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
82/3e/dfdb416e88b47434361c56a6d9f8
Event Timeline
Log In to Comment