Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-10-24 01:31:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-10-24 01:31:59 +0400
commit5b0a79c7c76d2ddc62ffeec48ccfaf22c5f2bf65 (patch)
treeec6cb6a7d421542f262d0333d410a8d9d8635f2a /source/creator/creator.c
parent7fc1297b3cd2b99667558cdb8b93f300a0d56b69 (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.c5
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) */