svn merge -r 30323:30417 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender-staging.git] / source / blender / windowmanager / intern / wm_init_exit.c
index 9257401b650e53dd042fbc258fc0c7a639f9b07e..fe3172f5fdae674e53849f5967e0f2a5a8744fc4 100644 (file)
@@ -165,6 +165,10 @@ void WM_init(bContext *C, int argc, char **argv)
        G.ndofdevice = -1;      /* XXX bad initializer, needs set otherwise buttons show! */
        
        read_history();
+
+       if(G.sce[0] == 0)
+               BLI_make_file_string("/", G.sce, BLI_getDefaultDocumentFolder(), "untitled.blend");
+
        BLI_strncpy(G.lib, G.sce, FILE_MAX);
 
 }