The Great ScriptCanvas Purge, Part IX

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-07-07 11:48:54 -07:00
parent 27577a2e49
commit 7aaf265926
@@ -127,19 +127,6 @@ namespace ScriptCanvasDeveloper
{
return AZ::Failure<AZStd::string>("Active graph is not the newly created function.");
}
else
{
ScriptCanvas::ScriptCanvasId scriptCanvasId;
ScriptCanvasEditor::GeneralRequestBus::BroadcastResult(scriptCanvasId, &ScriptCanvasEditor::GeneralRequests::GetScriptCanvasId, activeGraphCanvasId);
bool isFunctionGraph = false;
ScriptCanvasEditor::EditorGraphRequestBus::EventResult(isFunctionGraph, scriptCanvasId, &ScriptCanvasEditor::EditorGraphRequests::IsFunctionGraph);
if (!isFunctionGraph)
{
return AZ::Failure<AZStd::string>("Created a new Graph, but graph is not of type Function.");
}
}
}
return CompoundAction::GenerateReport();