You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #31964 from nekomatata/fix-animation-player-error
Fixed switching back to AnimationPlayerEditor with empty animation list
This commit is contained in:
@@ -690,11 +690,13 @@ void AnimationPlayerEditor::set_state(const Dictionary &p_state) {
|
||||
|
||||
if (p_state.has("animation")) {
|
||||
String anim = p_state["animation"];
|
||||
if (!anim.empty() && player->has_animation(anim)) {
|
||||
_select_anim_by_name(anim);
|
||||
_animation_edit();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (p_state.has("track_editor_state")) {
|
||||
track_editor->set_state(p_state["track_editor_state"]);
|
||||
|
||||
Reference in New Issue
Block a user