From b326a357477ecac068419e7f7440953b292108b7 Mon Sep 17 00:00:00 2001 From: "Silc Lizard (Tokage) Renew" <61938263+TokageItLab@users.noreply.github.com> Date: Sat, 13 Jul 2024 14:27:01 +0900 Subject: [PATCH] Reset position to 0 after animation selected on AnimationPlayerEditor --- editor/plugins/animation_player_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index 02fa582da49..5d60de973ab 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -345,6 +345,7 @@ void AnimationPlayerEditor::_animation_selected(int p_which) { } frame->set_max((double)anim->get_length()); autoplay->set_pressed(current == player->get_autoplay()); + player->stop(); } else { track_editor->set_animation(Ref(), true); track_editor->set_root(nullptr);