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
This commit is contained in:
2004-11-07 16:49:46 +00:00
parent c702b237d5
commit 0f84375d7a
18 changed files with 202 additions and 72 deletions

View File

@@ -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;