The Great ScriptCanvas Purge, Part V
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
-13
@@ -73,19 +73,6 @@ namespace ScriptCanvasDeveloper
|
||||
{
|
||||
return AZ::Failure<AZStd::string>("Active graph is not the newly created graph.");
|
||||
}
|
||||
else
|
||||
{
|
||||
ScriptCanvas::ScriptCanvasId scriptCanvasId;
|
||||
ScriptCanvasEditor::GeneralRequestBus::BroadcastResult(scriptCanvasId, &ScriptCanvasEditor::GeneralRequests::GetScriptCanvasId, activeGraphCanvasId);
|
||||
|
||||
bool isRuntimeGraph = false;
|
||||
ScriptCanvasEditor::EditorGraphRequestBus::EventResult(isRuntimeGraph, scriptCanvasId, &ScriptCanvasEditor::EditorGraphRequests::IsRuntimeGraph);
|
||||
|
||||
if (!isRuntimeGraph)
|
||||
{
|
||||
return AZ::Failure<AZStd::string>("Created a new Graph, but graph is not of type Runtime Graph.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return CompoundAction::GenerateReport();
|
||||
|
||||
-13
@@ -75,19 +75,6 @@ namespace ScriptCanvasDeveloper
|
||||
{
|
||||
ReportError("Active graph is not the newly created graph using hotkey.");
|
||||
}
|
||||
else
|
||||
{
|
||||
ScriptCanvas::ScriptCanvasId scriptCanvasId;
|
||||
ScriptCanvasEditor::GeneralRequestBus::BroadcastResult(scriptCanvasId, &ScriptCanvasEditor::GeneralRequests::GetScriptCanvasId, activeGraphCanvasId);
|
||||
|
||||
bool isRuntimeGraph = false;
|
||||
ScriptCanvasEditor::EditorGraphRequestBus::EventResult(isRuntimeGraph, scriptCanvasId, &ScriptCanvasEditor::EditorGraphRequests::IsRuntimeGraph);
|
||||
|
||||
if (!isRuntimeGraph)
|
||||
{
|
||||
ReportError("Failed to create Runtime graph using button");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GraphCanvas::AssetEditorNotificationBus::Handler::BusDisconnect();
|
||||
|
||||
Reference in New Issue
Block a user