aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins
diff options
context:
space:
mode:
authorAndreas Haas2016-10-13 12:31:45 +0200
committerRémi Verschelde2016-10-17 20:49:18 +0200
commita418304def911240bc23b730d69372438ff1472f (patch)
treeb6cdb83bbf7ede38d539732bf9b157363cf40076 /tools/editor/plugins
parentea48675ffa5eb75c219c3a4f75d7b904ac763bf3 (diff)
downloadgodot-a418304def911240bc23b730d69372438ff1472f.tar.gz
godot-a418304def911240bc23b730d69372438ff1472f.tar.zst
godot-a418304def911240bc23b730d69372438ff1472f.zip
Only show AnimationEditor automatically when an Animplayer is selected.
Previous behaviour was to show it when an AnimationPlayer has been detected in the scene, now you actually have to select it. Fixes #6213 (cherry picked from commit 86fd40b06c14f32327def8d872312974ecd32436)
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r--tools/editor/plugins/animation_player_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/animation_player_editor_plugin.cpp b/tools/editor/plugins/animation_player_editor_plugin.cpp
index b4d54c6b1..d6d452dd7 100644
--- a/tools/editor/plugins/animation_player_editor_plugin.cpp
+++ b/tools/editor/plugins/animation_player_editor_plugin.cpp
@@ -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();