[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34412] trunk/blender/source/blender/ windowmanager/intern/wm_init_exit.c: don't set the path to ~/untitled. blend on initializing the WM, this isn' t well defined how this behavior should work,

Campbell Barton ideasman42 at gmail.com
Thu Jan 20 08:38:01 CET 2011


Revision: 34412
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34412
Author:   campbellbarton
Date:     2011-01-20 07:38:00 +0000 (Thu, 20 Jan 2011)
Log Message:
-----------
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 "". 

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_init_exit.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_init_exit.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_init_exit.c	2011-01-19 23:31:11 UTC (rev 34411)
+++ trunk/blender/source/blender/windowmanager/intern/wm_init_exit.c	2011-01-20 07:38:00 UTC (rev 34412)
@@ -177,8 +177,11 @@
 	
 	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);
 




More information about the Bf-blender-cvs mailing list