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:
commit
7c7d9e2169
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue