From 76e02a75e5044680906e79efb12096476143bdc6 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 21 Jan 2025 23:43:52 +0100 Subject: [PATCH] Fix BTInstance not registered with debugger on BTPlayer.set_bt_instance() (#275) --- bt/bt_player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bt/bt_player.cpp b/bt/bt_player.cpp index 4a1790d..6237c78 100644 --- a/bt/bt_player.cpp +++ b/bt/bt_player.cpp @@ -91,6 +91,11 @@ void BTPlayer::set_bt_instance(const Ref &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(); }