소스 검색

Merge pull request #6814 from Hinsbart/animplayer

Only show AnimationEditor automatically when an Animplayer is selected.
George Marques 9 년 전
부모
커밋
682c20be46
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/editor/plugins/animation_player_editor_plugin.cpp

+ 1 - 1
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();