소스 검색

Fixes Inspector Showing Unselected Info

When deselecting a node, the inspector would show the name of the last thing selected.
Emmanuel Barroga 6 년 전
부모
커밋
47065f0c3e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      editor/inspector_dock.cpp

+ 4 - 0
editor/inspector_dock.cpp

@@ -408,6 +408,10 @@ void InspectorDock::update(Object *p_object) {
 		warning->hide();
 		search->set_editable(false);
 
+		editor_path->set_text("");
+		editor_path->set_tooltip("");
+		editor_path->set_icon(NULL);
+
 		return;
 	}