don't set the path to ~/untitled.blend on initializing the WM, this isn't well defined how this behavior should work,

existing behavior was inconsistent since loading a new file would set the path to "".
This commit is contained in:
Campbell Barton
2011-01-20 07:38:00 +00:00
parent 6cadef1fb1
commit 287efe6036

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