diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-20 10:38:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-20 10:38:00 +0300 |
commit | 287efe603637e5d5b3317db5a996dbe4a50609ad (patch) | |
tree | ca677ab2fa600a9f8499c1a3ffea4ef9164d85b2 /source/blender | |
parent | 6cadef1fb12061ae40a5c2662d121305bc51fa8f (diff) |
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 "".
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 405aa5bd8af..0d1dfd5fbba 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -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); |