1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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`
This commit is contained in:
Rémi Verschelde
2024-07-20 21:43:50 +02:00

View File

@@ -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);