The Great ScriptCanvas Purge, Part VII
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -168,7 +168,12 @@ namespace ScriptCanvas
|
||||
{
|
||||
if (nodeId == m_sourceEndpoint.GetNodeId() || nodeId == m_targetEndpoint.GetNodeId())
|
||||
{
|
||||
GraphRequestBus::Event(*GraphNotificationBus::GetCurrentBusId(), &GraphRequests::DisconnectById, GetEntityId());
|
||||
Slot* sourceSlot{};
|
||||
NodeRequestBus::EventResult(sourceSlot, m_sourceEndpoint.GetNodeId(), &NodeRequests::GetSlot, m_sourceEndpoint.GetSlotId());
|
||||
if (sourceSlot)
|
||||
{
|
||||
GraphRequestBus::Event(sourceSlot->GetNode()->GetOwningScriptCanvasId(), &GraphRequests::DisconnectById, GetEntityId());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,8 +60,6 @@ namespace ScriptCanvas
|
||||
// GraphNotificationBus
|
||||
void OnNodeRemoved(const ID& nodeId) override;
|
||||
|
||||
void UpdateConnectionStatus(NodeUpdateSlotReport& report);
|
||||
|
||||
protected:
|
||||
//-------------------------------------------------------------------------
|
||||
static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
|
||||
|
||||
@@ -288,7 +288,7 @@ namespace ScriptCanvas
|
||||
VariableRequestBus::EventResult(baseType, GetScopedVariableId(), &VariableRequests::GetType);
|
||||
|
||||
const GraphVariableMapping* variableMap = nullptr;
|
||||
GraphRequestBus::EventResult(variableMap, *GraphNotificationBus::GetCurrentBusId(), &GraphRequests::GetVariables);
|
||||
GraphRequestBus::EventResult(variableMap, GetOwningScriptCanvasId(), &GraphRequests::GetVariables);
|
||||
|
||||
if (variableMap && baseType.IsValid())
|
||||
{
|
||||
|
||||
@@ -243,7 +243,7 @@ namespace ScriptCanvas
|
||||
VariableRequestBus::EventResult(baseType, GetScopedVariableId(), &VariableRequests::GetType);
|
||||
|
||||
const GraphVariableMapping* variableMap = nullptr;
|
||||
GraphRequestBus::EventResult(variableMap, *GraphNotificationBus::GetCurrentBusId(), &GraphRequests::GetVariables);
|
||||
GraphRequestBus::EventResult(variableMap, GetOwningScriptCanvasId(), &GraphRequests::GetVariables);
|
||||
|
||||
if (variableMap && baseType.IsValid())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user