From f04ec34b78b0a1fe930abb59433cfcf0f9645939 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sun, 22 Oct 2023 16:42:08 +0200 Subject: [PATCH] Ensure AnimationPlayer evaluate animations when autoplay is enabled and node becomes ready. Fixes #83326. The issue was introduced in the refactoring done in 1b95827d3ef244de322b0c16deb49fefe48ed1a1. --- scene/animation/animation_player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index b3285d4cfcf..df7044d005f 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; }