This commit is contained in:
itsmattkc
2018-10-10 23:30:40 +11:00
parent b741a8ddd5
commit 712f9f160f
4 changed files with 61 additions and 14 deletions
+17
View File
@@ -1488,3 +1488,20 @@ void SetBool::undo() {
void SetBool::redo() {
*boolean = new_setting;
}
SetSelectionsCommand::SetSelectionsCommand(Sequence* s) :
seq(s),
done(true)
{}
void SetSelectionsCommand::undo() {
sequence->selections = old_data;
done = false;
}
void SetSelectionsCommand::redo() {
if (!done) {
sequence->selections = new_data;
done = true;
}
}