Skip to content

Commit

Permalink
Merge pull request godotengine#94302 from TokageItLab/reset-after-cha…
Browse files Browse the repository at this point in the history
…nge-animation-editor

Fix the behavior of after selecting animation on AnimationPlayerEditor to reset position to `0`
  • Loading branch information
akien-mga committed Jul 20, 2024
2 parents ab5ae8a + b326a35 commit e25f3c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/animation_player_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Animation>(), true);
track_editor->set_root(nullptr);
Expand Down

0 comments on commit e25f3c0

Please sign in to comment.