Skip to content

Commit

Permalink
Fix BTInstance not registered with debugger on BTPlayer.set_bt_instan…
Browse files Browse the repository at this point in the history
…ce() (#275)
  • Loading branch information
limbonaut authored Jan 21, 2025
1 parent 1b9cf17 commit 76e02a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bt/bt_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ void BTPlayer::set_bt_instance(const Ref<BTInstance> &p_bt_instance) {
blackboard = p_bt_instance->get_blackboard();
agent_node = p_bt_instance->get_agent()->get_path();

#ifdef DEBUG_ENABLED
bt_instance->set_monitor_performance(monitor_performance);
bt_instance->register_with_debugger();
#endif // DEBUG_ENABLED

blackboard_plan.unref();
behavior_tree.unref();
}
Expand Down

0 comments on commit 76e02a7

Please sign in to comment.