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
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ void AnimationPlayer::_notification(int p_what) {
|
||||||
if (!Engine::get_singleton()->is_editor_hint() && animation_set.has(autoplay)) {
|
if (!Engine::get_singleton()->is_editor_hint() && animation_set.has(autoplay)) {
|
||||||
set_active(true);
|
set_active(true);
|
||||||
play(autoplay);
|
play(autoplay);
|
||||||
|
seek(0, true);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue