mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Reset position to 0 after animation selected on AnimationPlayerEditor
This commit is contained in:
parent
97b8ad1af0
commit
b326a35747
@ -345,6 +345,7 @@ void AnimationPlayerEditor::_animation_selected(int p_which) {
|
|||||||
}
|
}
|
||||||
frame->set_max((double)anim->get_length());
|
frame->set_max((double)anim->get_length());
|
||||||
autoplay->set_pressed(current == player->get_autoplay());
|
autoplay->set_pressed(current == player->get_autoplay());
|
||||||
|
player->stop();
|
||||||
} else {
|
} else {
|
||||||
track_editor->set_animation(Ref<Animation>(), true);
|
track_editor->set_animation(Ref<Animation>(), true);
|
||||||
track_editor->set_root(nullptr);
|
track_editor->set_root(nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user