Skip to content

Fix IfThenElse not resetting children in 2-child config - #1294

Open
vivoeiva wants to merge 1 commit into
BehaviorTree:masterfrom
vivoeiva:fix/if-then-else-2ch
Open

vivoeiva wants to merge 1 commit into
BehaviorTree:masterfrom
vivoeiva:fix/if-then-else-2ch

Conversation

@vivoeiva

Copy link
Copy Markdown
Contributor

Although the header says "If you have only 2 children, this node will return FAILURE whenever the statement returns FAILURE. This is equivalent to add AlwaysFailure as 3rd child", they were not equivalent - 2-children case was not resetting the children, therefore the tests.

Fix it adding this reset in the else branch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant