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/buttons_script.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/buttons_script.c')
-rw-r--r-- | source/blender/src/buttons_script.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/src/buttons_script.c b/source/blender/src/buttons_script.c index 9cb4d49769c..94013132f78 100644 --- a/source/blender/src/buttons_script.c +++ b/source/blender/src/buttons_script.c @@ -183,8 +183,10 @@ void do_scriptbuts(unsigned short event) switch (event) { case B_SSCRIPT_ADD: extend_scriptlink(&G.scene->scriptlink); + BIF_undo_push("Add scriptlink"); break; case B_SSCRIPT_DEL: + BIF_undo_push("Delete scriptlink"); delete_scriptlink(&G.scene->scriptlink); break; @@ -212,9 +214,14 @@ void do_scriptbuts(unsigned short event) script= &(G.scene->world->scriptlink); } - if (event==B_SCRIPT_ADD) extend_scriptlink(script); - else delete_scriptlink(script); - + if (event==B_SCRIPT_ADD) { + extend_scriptlink(script); + BIF_undo_push("Add scriptlink"); + } + else { + delete_scriptlink(script); + BIF_undo_push("Delete scriptlink"); + } break; default: break; |