undo: wrapped redo/undo functions to ensure prepare is called

This commit is contained in:
itsmattkc
2021-07-17 00:14:24 -07:00
parent 84e639606f
commit 52c5617159
29 changed files with 174 additions and 103 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ void NodeEdgeAddCommand::redo()
remove_command_ = new NodeEdgeRemoveCommand(input_.GetConnectedOutput(), input_);
}
remove_command_->redo();
remove_command_->redo_now();
}
Node::ConnectEdge(output_, input_);
@@ -54,7 +54,7 @@ void NodeEdgeAddCommand::undo()
Node::DisconnectEdge(output_, input_);
if (remove_command_) {
remove_command_->undo();
remove_command_->undo_now();
}
}