浏览代码

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;
 	}