Fixed switching back to animation player editor with no animation to select
Fixes #31959
This commit is contained in:
parent
604dc426d5
commit
b01d07e049
@ -690,8 +690,10 @@ void AnimationPlayerEditor::set_state(const Dictionary &p_state) {
|
|||||||
|
|
||||||
if (p_state.has("animation")) {
|
if (p_state.has("animation")) {
|
||||||
String anim = p_state["animation"];
|
String anim = p_state["animation"];
|
||||||
_select_anim_by_name(anim);
|
if (!anim.empty() && player->has_animation(anim)) {
|
||||||
_animation_edit();
|
_select_anim_by_name(anim);
|
||||||
|
_animation_edit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user