editor sc component switched over to source handle, not yet connected to file notifications

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-11-19 10:03:16 -08:00
parent 487e2fb5bb
commit f1632b099c
10 changed files with 271 additions and 211 deletions
@@ -1944,7 +1944,7 @@ namespace ScriptCanvasEditor
{
if (auto firstRequestBus = EditorScriptCanvasComponentRequestBus::FindFirstHandler(entity->GetId()))
{
firstRequestBus->SetAssetId(memoryAsset.Id());
firstRequestBus->SetAssetId(memoryAsset.Describe());
}
}
else
@@ -1953,7 +1953,7 @@ namespace ScriptCanvasEditor
{
if (editorComponent->GetAssetId() == oldId)
{
editorComponent->SetAssetId(memoryAsset.Id());
editorComponent->SetAssetId(memoryAsset.Describe());
break;
}
}
@@ -4377,15 +4377,7 @@ namespace ScriptCanvasEditor
if (usableRequestBus)
{
ScriptCanvasMemoryAsset::pointer memoryAsset;
// #sc_editor_asset
// AssetTrackerRequestBus::BroadcastResult(memoryAsset, &AssetTrackerRequests::GetAsset, m_activeGraph);
if (memoryAsset)
{
// We need to assign the AssetId for the file asset, not the in-memory asset
usableRequestBus->SetAssetId(memoryAsset->GetFileAssetId());
}
usableRequestBus->SetAssetId(m_activeGraph.Describe());
}
}