diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-10-24 01:31:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-10-24 01:31:59 +0400 |
commit | 5b0a79c7c76d2ddc62ffeec48ccfaf22c5f2bf65 (patch) | |
tree | ec6cb6a7d421542f262d0333d410a8d9d8635f2a /source/blender/python/api2_2x | |
parent | 7fc1297b3cd2b99667558cdb8b93f300a0d56b69 (diff) |
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.
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r-- | source/blender/python/api2_2x/Blender.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c index 07384391d27..24b9f4d5186 100644 --- a/source/blender/python/api2_2x/Blender.c +++ b/source/blender/python/api2_2x/Blender.c @@ -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 ); |