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:
authorTon Roosendaal <ton@blender.org>2007-11-11 19:13:27 +0300
committerTon Roosendaal <ton@blender.org>2007-11-11 19:13:27 +0300
commit3d250856fb2b42d2e80c2afbada99e73cce84475 (patch)
tree7fc936e66ec4e8b69932ba162dd4fae4d4522c95 /source/creator
parent3a90b35db8f175e43f5463540287f0ae6b3a2832 (diff)
Proper code for bugfix revision 12365 (which was uncommitted today).
Old log Message: ----------- 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')
-rw-r--r--source/creator/creator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index c9474f01b5f..e42e52cdf33 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -688,6 +688,10 @@ int main(int argc, char **argv)
else {
BKE_read_file(argv[a], NULL);
sound_initialize_sounds();
+
+ /* happens for the UI on file reading too */
+ BKE_reset_undo();
+ BKE_write_undo("original"); /* save current state */
}
}