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/src/header_info.c | |
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/src/header_info.c')
-rw-r--r-- | source/blender/src/header_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index f4a572873d5..0cd8a0dc08d 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -812,7 +812,7 @@ static void do_info_filemenu(void *arg, int event) switch(event) { case 0: if (okee("Erase All")) { - if (!BIF_read_homefile(0)) + if (!BIF_read_homefile(0, 1)) error("No file ~/.B.blend"); } break; @@ -896,7 +896,7 @@ static void do_info_filemenu(void *arg, int event) break; case 32: if (okee("Erase All")) { - if (!BIF_read_homefile(1)) + if (!BIF_read_homefile(1, 1)) error("Can't read data from memory!"); } break; |