don't set the path to ~/untitled.blend on initializing the WM, this isn't well define...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 20 Jan 2011 07:38:00 +0000 (07:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 20 Jan 2011 07:38:00 +0000 (07:38 +0000)
existing behavior was inconsistent since loading a new file would set the path to "".

source/blender/windowmanager/intern/wm_init_exit.c

index 405aa5bd8afbad8bf966435cf27a122492eb02db..0d1dfd5fbbaa6634f338014989aa0c3f753aeb09 100644 (file)
@@ -177,8 +177,11 @@ void WM_init(bContext *C, int argc, char **argv)
        
        read_history();
 
+       /* allow a path of "", this is what happens when making a new file */
+       /*
        if(G.main->name[0] == 0)
                BLI_make_file_string("/", G.main->name, BLI_getDefaultDocumentFolder(), "untitled.blend");
+       */
 
        BLI_strncpy(G.lib, G.main->name, FILE_MAX);