Return node is only executed if its explicitly connected #646
Labels
bug/confirmed
Bug/regression has been confirmed.
cherrypick:2.0
Requires cherry-pick to Orchestrator 2.0
kind/bug
A bug or regression in expected behavior.
Milestone
Describe the bug
Given the following graph:
The VM will execute the
F 00
node and theBranch
node, immediately exiting the function call. This results in the function's return value being set tonull
rather than3
. If theFalse
output pin from theBranch
node were connected to theReturn Node
, then the output would have been3
as well.Expected behavior
Any top-level (non-nested) control flow pin should implicitly be connected to the
Return Node
if one exists and has return values. This guarantees that the graph's execution works like that of a text-based program, i.e.:Actual behavior
The
Return Node
only fires when the control flow exits the first for-loop's completed pin.How to Reproduce?
No response
Godot full version
No response
Orchestrator version
2.1.rc3
Additional information
No response
The text was updated successfully, but these errors were encountered: