1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Merge pull request #31978 from YeldhamDev/inspector_dock_small_improvements

Small improvements to the inspector dock
This commit is contained in:
Rémi Verschelde
2019-09-24 11:05:20 +02:00
committed by GitHub
2 changed files with 7 additions and 4 deletions

View File

@@ -74,7 +74,12 @@ void EditorPath::_about_to_show() {
objects.clear();
get_popup()->clear();
get_popup()->set_size(Size2(get_size().width, 1));
_add_children_to_popup(obj);
if (get_popup()->get_item_count() == 0) {
get_popup()->add_item(TTR("No sub-resources found."));
get_popup()->set_item_disabled(0, true);
}
}
void EditorPath::update_path() {