Merge pull request #31975 from codecustard/fixes_subresource_showing_deselection

Fixes Subresource Showing While Unselected
This commit is contained in:
Rémi Verschelde 2019-09-23 16:00:45 +02:00 committed by GitHub
commit a226d63f68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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