diff options
author | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-09-04 14:30:03 -0700 |
---|---|---|
committer | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-09-04 14:30:03 -0700 |
commit | f9821a5caf30f7c2d870541950e967048c1cb82f (patch) | |
tree | 4d2d7369395a1235d83de0b48394d6fefa555d47 /editor | |
parent | e205cbbd06deb02eff579469fa420ac25dc0688f (diff) |
Fixes Subresource Showing While Unselected
The inspector would still display the subresource of the last selected node. This PR resolves that issue.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/inspector_dock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index 8ba7d9fba7..e4411e436a 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -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(); |