Use weak reference for undo state, as it is an entirely internal class

Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
carlitosan
2021-12-06 13:37:29 -08:00
parent b9bbe233be
commit d8e5315199
5 changed files with 28 additions and 28 deletions
@@ -481,6 +481,7 @@ namespace ScriptCanvasEditor
ScriptCanvas::Graph::Activate();
PostActivate();
m_undoHelper.SetSource(this);
}
void Graph::Deactivate()
@@ -1067,7 +1068,6 @@ namespace ScriptCanvasEditor
void Graph::MarkOwnership(ScriptCanvas::ScriptCanvasData& owner)
{
m_owner = &owner;
m_undoHelper.SetSource(SourceHandle(GetOwnership(), {}, ""));
}
ScriptCanvas::DataPtr Graph::GetOwnership() const