mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Merge pull request #6814 from Hinsbart/animplayer
Only show AnimationEditor automatically when an Animplayer is selected.
This commit is contained in:
commit
682c20be46
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ void AnimationPlayerEditor::set_state(const Dictionary& p_state) {
|
|||
return;
|
||||
|
||||
Node *n = EditorNode::get_singleton()->get_edited_scene()->get_node(p_state["player"]);
|
||||
if (n && n->cast_to<AnimationPlayer>()) {
|
||||
if (n && n->cast_to<AnimationPlayer>() && EditorNode::get_singleton()->get_editor_selection()->is_selected(n)) {
|
||||
player=n->cast_to<AnimationPlayer>();
|
||||
_update_player();
|
||||
show();
|
||||
|
|
Loading…
Add table
Reference in a new issue