Fix `BTInstance` not registered in debugger in BTPlayer.set_bt_instance()
This commit is contained in:
parent
0584b0401f
commit
71b779a472
|
@ -78,6 +78,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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue