it renders!

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-11-03 21:12:29 -07:00
committed by Chris Burel
parent cbbd6df0c5
commit 20147ddafb
5 changed files with 12 additions and 13 deletions
@@ -1280,16 +1280,9 @@ namespace ScriptCanvasEditor
AddRecentFile(assetPath.c_str());
}
if (!m_isRestoringWorkspace)
{
SetActiveAsset(fileAssetId);
}
GraphCanvas::GraphId graphCanvasGraphId = GetGraphCanvasGraphId(scriptCanvasAsset.Get()->GetScriptCanvasId());
GraphCanvas::AssetEditorNotificationBus::Event(ScriptCanvasEditor::AssetEditorId, &GraphCanvas::AssetEditorNotifications::OnGraphLoaded, graphCanvasGraphId);
GeneralAssetNotificationBus::Event(fileAssetId, &GeneralAssetNotifications::OnAssetVisualized);
return AZ::Success(outTabIndex);
}
@@ -1506,14 +1499,14 @@ namespace ScriptCanvasEditor
}
m_errorFilePath.clear();
m_activeGraph = ScriptCanvasEditor::SourceHandle(outcome.TakeValue(), assetInfo.m_assetId.m_guid, fullPath);
auto activeGraph = ScriptCanvasEditor::SourceHandle(outcome.TakeValue(), assetInfo.m_assetId.m_guid, fullPath);
auto openOutcome = OpenScriptCanvasAsset(m_activeGraph);
auto openOutcome = OpenScriptCanvasAsset(activeGraph);
if (openOutcome)
{
RunGraphValidation(false);
SetRecentAssetId(m_activeGraph);
SetActiveAsset(m_activeGraph);
SetActiveAsset(activeGraph);
SetRecentAssetId(activeGraph);
}
else
{