mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Minor improvements to sub-resource list
This commit is contained in:
parent
d984ad64d4
commit
05663b8633
@ -3578,6 +3578,13 @@ void SceneTreeDock::_list_all_subresources(PopupMenu *p_menu) {
|
||||
p_menu->set_item_metadata(-1, pair.first->get_instance_id());
|
||||
}
|
||||
}
|
||||
|
||||
if (resources_by_type.is_empty()) {
|
||||
p_menu->add_item(TTR("None"));
|
||||
p_menu->set_item_disabled(-1, true);
|
||||
}
|
||||
|
||||
p_menu->reset_size();
|
||||
}
|
||||
|
||||
void SceneTreeDock::_gather_resources(Node *p_node, List<Pair<Ref<Resource>, Node *>> &r_resources) {
|
||||
|
Loading…
Reference in New Issue
Block a user