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/creator/creator.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/creator/creator.c')
-rw-r--r-- | source/creator/creator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index c9474f01b5f..8983582e44a 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -702,9 +702,10 @@ int main(int argc, char **argv) sce= add_scene("1"); set_scene(sce); } - + + BKE_write_undo("original"); /* save current state */ screenmain(); - + return 0; } /* end of int main(argc,argv) */ |