[Bf-blender-cvs] [01a8216] master: Disable check for recent-files.txt existing

Campbell Barton noreply at git.blender.org
Thu Jul 16 09:19:39 CEST 2015


Commit: 01a8216a4bc8968a108eec5fc50436f4a6ed02a9
Author: Campbell Barton
Date:   Thu Jul 16 16:57:10 2015 +1000
Branches: master
https://developer.blender.org/rB01a8216a4bc8968a108eec5fc50436f4a6ed02a9

Disable check for recent-files.txt existing

slows startup on remote, network fs... etc.

===================================================================

M	source/blender/windowmanager/intern/wm_files.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 5bd2bb8..8c5f86f 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -745,7 +745,8 @@ void wm_read_history(void)
 	/* read list of recent opened files from recent-files.txt to memory */
 	for (l = lines, num = 0; l && (num < U.recent_files); l = l->next) {
 		line = l->link;
-		if (line[0] && BLI_exists(line)) {
+		/* don't check if files exist, causes slow startup for remote/external drives */
+		if (line[0]) {
 			recent = (RecentFile *)MEM_mallocN(sizeof(RecentFile), "RecentFile");
 			BLI_addtail(&(G.recent_files), recent);
 			recent->filepath = BLI_strdup(line);




More information about the Bf-blender-cvs mailing list