new source file button works

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-11-10 15:39:17 -08:00
parent 98ecef2fd2
commit 0fa56ba5f8
6 changed files with 109 additions and 165 deletions
@@ -1055,6 +1055,8 @@ namespace ScriptCanvasEditor
{
data->m_scriptCanvasEntity.reset(entity);
graph->MarkOwnership(*data);
entity->Init();
entity->Activate();
return data;
}
}
@@ -1352,7 +1354,7 @@ namespace ScriptCanvasEditor
void Graph::SignalDirty()
{
SourceHandle handle(ScriptCanvas::DataPtr(m_owner), {}, {});
SourceHandle handle(m_owner->shared_from_this(), {}, {});
GeneralRequestBus::Broadcast(&GeneralRequests::SignalSceneDirty, handle);
}