Fix for unconverted once nodes

This commit is contained in:
chcurran
2021-06-15 12:13:25 -07:00
parent 9f7f6e84a4
commit 2fd985f162
2 changed files with 8 additions and 1 deletions
@@ -3764,6 +3764,12 @@ namespace ScriptCanvas
nextSlot = onceResetSlot;
}
if (!nextSlot)
{
AddError(ID.m_node->GetEntityId(), once, "Once node missing next slot, likely needs replacement");
return;
}
ParseExecutionTreeBody(nextParse, *nextSlot);
nextParse->MarkDebugEmptyStatement();
}
@@ -928,6 +928,7 @@ namespace ScriptCanvas
{
return execution->GetId().m_node
&& IsOnce(*execution->GetId().m_node)
&& execution->GetId().m_slot
&& execution->GetId().m_slot->GetType() == CombinedSlotType::ExecutionIn;
}
@@ -938,7 +939,7 @@ namespace ScriptCanvas
bool IsOnceReset(const Node& node, const Slot* slot)
{
return slot = OnceProperty::GetResetSlot(&node);
return slot == OnceProperty::GetResetSlot(&node);
}
bool IsOperatorArithmetic(const ExecutionTreeConstPtr& execution)