The Great ScriptCanvas Purge, Part IX

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
main
chcurran 5 years ago
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();

Loading…
Cancel
Save