diff options
author | Ton Roosendaal <ton@blender.org> | 2004-11-07 19:49:46 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-11-07 19:49:46 +0300 |
commit | 0f84375d7afeccdaeb7a84af16aa46b1a521286f (patch) | |
tree | a5a1e1eafe4fd50f87114896b7e441113b237fe2 /source/blender/src/usiblender.c | |
parent | c702b237d5f9a542c1d327e1c87a5b7e7ec81590 (diff) |
Lotsa undo stuff added;
- ALT+U undo menu shows history for global undo as well
- Added undo pushes for buttons window more consistantly
- Added it & tested for ipowindow too
- Added it in outliner
- And quite some missing occasions for 3d window editing
Diffstat (limited to 'source/blender/src/usiblender.c')
-rw-r--r-- | source/blender/src/usiblender.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index af6b8e1be02..13647fdbd90 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -138,17 +138,19 @@ void BIF_read_file(char *name) calls readfile, calls toolbox, throws one more, on failure calls the stream, and that is stubbed.... */ BKE_read_file(name, NULL); - } - mainwindow_set_filename_to_title(G.main->name); - countall(); - sound_initialize_sounds(); + + mainwindow_set_filename_to_title(G.main->name); + countall(); + sound_initialize_sounds(); - winqueue_break= 1; /* leave queues everywhere */ + winqueue_break= 1; /* leave queues everywhere */ - undo_editmode_clear(); - BKE_reset_undo(); - BKE_write_undo("original"); /* save current state */ + undo_editmode_clear(); + BKE_reset_undo(); + BKE_write_undo("original"); /* save current state */ + } + else BIF_undo_push("Import file"); } int BIF_read_homefile(void) |