Revision: 43767
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43767
Author:   campbellbarton
Date:     2012-01-30 10:04:27 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
file selector - entering and empty path on *nix would ask to create a new dir.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_file/file_ops.c

Modified: trunk/blender/source/blender/editors/space_file/file_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/file_ops.c  2012-01-30 
09:49:30 UTC (rev 43766)
+++ trunk/blender/source/blender/editors/space_file/file_ops.c  2012-01-30 
10:04:27 UTC (rev 43767)
@@ -1096,8 +1096,14 @@
                        BLI_join_dirfile(sfile->params->dir, 
sizeof(sfile->params->dir), BLI_getDefaultDocumentFolder(), tmpstr);
                }
 
-#ifdef WIN32
-               if (sfile->params->dir[0] == '\0') {
+               else if (sfile->params->dir[0] == '\0')
+#ifndef WIN32
+               {
+                       sfile->params->dir[0] = '/';
+                       sfile->params->dir[1] = '\0';
+               }
+#else
+               {
                        get_default_root(sfile->params->dir);
                }
                /* change "C:" --> "C:\", [#28102] */

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

Reply via email to