bug fix, when opening blender with a file (by double clicking or from the command line) - the initial undo state would be set to the default scene.

So holding Ctrl+Z would go back to the default .B.blend rather then the file that the user opened.
This commit is contained in:
2007-10-23 21:31:59 +00:00
parent 7fc1297b3c
commit 5b0a79c7c7
6 changed files with 17 additions and 10 deletions

View File

@@ -637,7 +637,7 @@ static PyObject *Blender_Load( PyObject * self, PyObject * args )
* enough here. Note: the default file requires extra clean-up done by
* BIF_read_homefile: freeing the user theme data. */
if( !fname || ( strstr( fname, ".B.blend" ) && is_blend_file ) )
BIF_read_homefile(0);
BIF_read_homefile(0, 1);
else
BIF_read_file( fname );