add file state for graphs

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-11-04 15:58:19 -07:00
committed by Chris Burel
parent 20147ddafb
commit d40b9fc809
15 changed files with 99 additions and 93 deletions
@@ -173,13 +173,11 @@ namespace ScriptCanvasEditor
outCreatableTypes.insert(m_creatableTypes.begin(), m_creatableTypes.end());
}
void SystemComponent::CreateEditorComponentsOnEntity(AZ::Entity* entity, const AZ::Data::AssetType& assetType)
void SystemComponent::CreateEditorComponentsOnEntity(AZ::Entity* entity, [[maybe_unused]] const AZ::Data::AssetType& assetType)
{
if (entity)
{
auto graph = entity->CreateComponent<Graph>();
graph->SetAssetType(assetType);
entity->CreateComponent<EditorGraphVariableManagerComponent>(graph->GetScriptCanvasId());
}
}