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);
                                }
                        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to