Merge pull request #83781 from martinfelis/fix-animationplayer-ready-autoplay

Ensure AnimationPlayer evaluate animations when autoplay is enabled and node becomes ready
This commit is contained in:
Rémi Verschelde 2023-11-14 11:27:44 +01:00
commit 7c7d9e2169
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ void AnimationPlayer::_notification(int p_what) {
if (!Engine::get_singleton()->is_editor_hint() && animation_set.has(autoplay)) {
set_active(true);
play(autoplay);
seek(0, true);
}
} break;
}