summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-11-14 11:27:44 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-11-14 11:27:44 +0100
commit7c7d9e2169fbe5fccbe8d02328b97ce7a1a96291 (patch)
tree1c4ffed2163f418abab2ffdcf328f990007d0a46
parentfee6df76a2cf3d611f1b70655cc6d36b03e6e159 (diff)
parentf04ec34b78b0a1fe930abb59433cfcf0f9645939 (diff)
downloadredot-engine-7c7d9e2169fbe5fccbe8d02328b97ce7a1a96291.tar.gz
Merge pull request #83781 from martinfelis/fix-animationplayer-ready-autoplay
Ensure AnimationPlayer evaluate animations when autoplay is enabled and node becomes ready
-rw-r--r--scene/animation/animation_player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index b3285d4cfc..df7044d005 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -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;
}