Skip to content

Commit

Permalink
Merge pull request #83781 from martinfelis/fix-animationplayer-ready-…
Browse files Browse the repository at this point in the history
…autoplay

Ensure AnimationPlayer evaluate animations when autoplay is enabled and node becomes ready
  • Loading branch information
akien-mga committed Nov 14, 2023
2 parents fee6df7 + f04ec34 commit 7c7d9e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/animation/animation_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c7d9e2

Please sign in to comment.