timeline: reorganized undo commands

Split commands between several files rather than having them all in two monolithic ones.
This commit is contained in:
itsmattkc
2021-07-16 01:38:20 -07:00
parent 913f386188
commit c41047ab02
33 changed files with 3088 additions and 2611 deletions
+10
View File
@@ -49,8 +49,18 @@ void MultiUndoCommand::undo()
}
}
UndoCommand::UndoCommand()
{
prepared_ = false;
}
void UndoCommand::redo_and_set_modified()
{
if (!prepared_) {
prepare();
prepared_ = true;
}
redo();
project_ = GetRelevantProject();