Compare commits

...

2 Commits

Author SHA1 Message Date
Serhii Snitsaruk 3565d6dc43
Merge pull request #162 from ydeltastar/fix-btplayer-error
Fix error when opening scene with a `BTPlayer`
2024-07-18 05:22:33 +02:00
yds 7073db7bfa Fix error when loading scene with a `BTPlayer` 2024-07-17 13:25:58 -03:00
1 changed files with 1 additions and 1 deletions

View File

@ -214,10 +214,10 @@ void BTPlayer::_notification(int p_notification) {
if (behavior_tree.is_valid()) { if (behavior_tree.is_valid()) {
_load_tree(); _load_tree();
} }
set_active(active);
} else { } else {
_update_blackboard_plan(); _update_blackboard_plan();
} }
set_active(active);
} break; } break;
case NOTIFICATION_ENTER_TREE: { case NOTIFICATION_ENTER_TREE: {
#ifdef DEBUG_ENABLED #ifdef DEBUG_ENABLED