Browse Source

Fixes Subresource Showing While Unselected

The inspector would still display the subresource of the last selected node. This PR resolves that issue.
Emmanuel Barroga 6 năm trước cách đây
mục cha
commit
f9821a5caf
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      editor/inspector_dock.cpp

+ 2 - 0
editor/inspector_dock.cpp

@@ -408,6 +408,7 @@ void InspectorDock::update(Object *p_object) {
 		warning->hide();
 		warning->hide();
 		search->set_editable(false);
 		search->set_editable(false);
 
 
+		editor_path->set_disabled(true);
 		editor_path->set_text("");
 		editor_path->set_text("");
 		editor_path->set_tooltip("");
 		editor_path->set_tooltip("");
 		editor_path->set_icon(NULL);
 		editor_path->set_icon(NULL);
@@ -420,6 +421,7 @@ void InspectorDock::update(Object *p_object) {
 
 
 	object_menu->set_disabled(false);
 	object_menu->set_disabled(false);
 	search->set_editable(true);
 	search->set_editable(true);
+	editor_path->set_disabled(false);
 	resource_save_button->set_disabled(!is_resource);
 	resource_save_button->set_disabled(!is_resource);
 
 
 	PopupMenu *p = object_menu->get_popup();
 	PopupMenu *p = object_menu->get_popup();