Merge pull request #162 from ydeltastar/fix-btplayer-error

Fix error when opening scene with a `BTPlayer`
This commit is contained in:
Serhii Snitsaruk 2024-07-18 05:22:33 +02:00 committed by GitHub
commit 3565d6dc43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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()) {
_load_tree();
}
set_active(active);
} else {
_update_blackboard_plan();
}
set_active(active);
} break;
case NOTIFICATION_ENTER_TREE: {
#ifdef DEBUG_ENABLED