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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user