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
committed by Chris Burel
parent b772db5e73
commit ad8cfa5f99
10 changed files with 271 additions and 211 deletions
@@ -1946,7 +1946,7 @@ namespace ScriptCanvasEditor
{
if (auto firstRequestBus = EditorScriptCanvasComponentRequestBus::FindFirstHandler(entity->GetId()))
{
firstRequestBus->SetAssetId(memoryAsset.Id());
firstRequestBus->SetAssetId(memoryAsset.Describe());
}
}
else
@@ -1955,7 +1955,7 @@ namespace ScriptCanvasEditor
{
if (editorComponent->GetAssetId() == oldId)
{
editorComponent->SetAssetId(memoryAsset.Id());
editorComponent->SetAssetId(memoryAsset.Describe());
break;
}
}
@@ -4379,15 +4379,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());
}
}