Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4ad3cd

Browse files
committed
fix issue BehaviorTree#757 : skipped nodes should not call post-condition ALWAYS
1 parent d4d6514 commit c4ad3cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tree_node.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,10 @@ NodeStatus TreeNode::executeTick()
109109
}
110110
}
111111

112-
checkPostConditions(new_status);
113-
114112
// injected post callback
115113
if(isStatusCompleted(new_status))
116114
{
115+
checkPostConditions(new_status);
117116
PostTickCallback callback;
118117
{
119118
std::unique_lock lk(_p->callback_injection_mutex);

0 commit comments

Comments
 (0)