Restore undo/redo

Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
carlitosan
2021-12-06 12:12:46 -08:00
parent 3e728d1183
commit b9bbe233be
10 changed files with 68 additions and 37 deletions
@@ -1067,6 +1067,7 @@ namespace ScriptCanvasEditor
void Graph::MarkOwnership(ScriptCanvas::ScriptCanvasData& owner)
{
m_owner = &owner;
m_undoHelper.SetSource(SourceHandle(GetOwnership(), {}, ""));
}
ScriptCanvas::DataPtr Graph::GetOwnership() const