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>2015-07-16 09:57:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-16 10:15:00 +0300
commit01a8216a4bc8968a108eec5fc50436f4a6ed02a9 (patch)
tree8ba13478ae22739c9aeb3983359156be3de09abf /source/blender/windowmanager/intern/wm_files.c
parent51385f6fe8e85aaed8a77d0314c15f8bdd0ef545 (diff)
Disable check for recent-files.txt existing
slows startup on remote, network fs... etc.
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 5bd2bb88f84..8c5f86f9944 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);