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>2012-05-11 21:41:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-11 21:41:38 +0400
commita045ad90557a1029b112023c9d6208e7807decd2 (patch)
tree418e423eb1a363383abc9bbe6a2fed362cca1a4c
parent1c0c2f4d0bd6556a3dd7293ddbd419a066e745f4 (diff)
don't stat bookmark files on load, can make blender hang on slow networks (eg, the blender institutes gigabit connection)... or if the server is busy.
-rw-r--r--source/blender/editors/space_file/fsmenu.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index 28ac674f079..4f8da4a1069 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -277,11 +277,17 @@ void fsmenu_read_bookmarks(struct FSMenu* fsmenu, const char *filename)
}
else {
int len = strlen(line);
- if (len>0) {
- if (line[len-1] == '\n') {
- line[len-1] = '\0';
+ if (len > 0) {
+ if (line[len - 1] == '\n') {
+ line[len - 1] = '\0';
}
- if (BLI_exists(line)) {
+ /* don't do this because it can be slow on network drives,
+ * having a bookmark from a drive thats ejected or so isn't
+ * all _that_ bad */
+#if 0
+ if (BLI_exists(line))
+#endif
+ {
fsmenu_insert_entry(fsmenu, category, line, 0, 1);
}
}