Skip to content

Commit e25f3c0

Browse files
committed
Merge pull request #94302 from TokageItLab/reset-after-change-animation-editor
Fix the behavior of after selecting animation on AnimationPlayerEditor to reset position to `0`
2 parents ab5ae8a + b326a35 commit e25f3c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

editor/plugins/animation_player_editor_plugin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ void AnimationPlayerEditor::_animation_selected(int p_which) {
345345
}
346346
frame->set_max((double)anim->get_length());
347347
autoplay->set_pressed(current == player->get_autoplay());
348+
player->stop();
348349
} else {
349350
track_editor->set_animation(Ref<Animation>(), true);
350351
track_editor->set_root(nullptr);

0 commit comments

Comments
 (0)