summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_player.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-29 10:10:28 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-29 10:10:28 +0200
commit164f28e06610cc9666c9007e68bfe28ae67add34 (patch)
treefd923cc36fb606ac01fee2e914c4d24342c704ff /scene/animation/animation_player.cpp
parent4b2245ffe16fb92cf51a0b3ae964fb1a11696728 (diff)
parent470c2f24e9019f3467bbc3b7ada53cf87e570166 (diff)
downloadredot-engine-164f28e06610cc9666c9007e68bfe28ae67add34.tar.gz
Merge pull request #91242 from TokageItLab/player-activating
Make activating on ready in AnimationPlayer respect the property value
Diffstat (limited to 'scene/animation/animation_player.cpp')
-rw-r--r--scene/animation/animation_player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index d46470282f..7140161eca 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -149,7 +149,7 @@ void AnimationPlayer::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_READY: {
if (!Engine::get_singleton()->is_editor_hint() && animation_set.has(autoplay)) {
- set_active(true);
+ set_active(active);
play(autoplay);
_check_immediately_after_start();
}