From 71b779a4720c589e0f2323915a1b974b3e75cd55 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 21 Jan 2025 23:18:54 +0100 Subject: [PATCH] Fix `BTInstance` not registered in debugger in BTPlayer.set_bt_instance() --- bt/bt_player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bt/bt_player.cpp b/bt/bt_player.cpp index 8d36eabb..9288e35d 100644 --- a/bt/bt_player.cpp +++ b/bt/bt_player.cpp @@ -78,6 +78,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(); }