[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46559] trunk/blender/source/blender/ editors/space_file/fsmenu.c: don't stat bookmark files on load, can make blender hang on slow networks (eg, the blender institutes gigabit connection)...
Campbell Barton
ideasman42 at gmail.com
Fri May 11 19:41:38 CEST 2012
Revision: 46559
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46559
Author: campbellbarton
Date: 2012-05-11 17:41:38 +0000 (Fri, 11 May 2012)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_file/fsmenu.c
Modified: trunk/blender/source/blender/editors/space_file/fsmenu.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/fsmenu.c 2012-05-11 17:39:57 UTC (rev 46558)
+++ trunk/blender/source/blender/editors/space_file/fsmenu.c 2012-05-11 17:41:38 UTC (rev 46559)
@@ -277,11 +277,17 @@
}
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);
}
}
More information about the Bf-blender-cvs
mailing list