Geometry Nodes: Remove assets loading warning from 3D view header

This isn't really helpful at this point, and is ugly/distracting when
starting Blender. It's not that bad if more menus show up with a
bit of a delay anyway.
This commit is contained in:
Hans Goudey 2023-07-10 10:09:36 -04:00
parent 80f105e924
commit baf1c79668

View file

@ -505,14 +505,9 @@ void ui_template_node_operator_asset_root_items(uiLayout &layout, bContext &C)
}
asset::AssetItemTree &tree = get_static_item_tree();
tree = build_catalog_tree(C);
const bool loading_finished = all_loading_finished();
if (tree.catalogs.is_empty() && loading_finished) {
if (tree.catalogs.is_empty()) {
return;
}
if (!loading_finished) {
uiItemL(&layout, IFACE_("Loading Asset Libraries"), ICON_INFO);
}
asset_system::AssetLibrary *all_library = ED_assetlist_library_get_once_available(
asset_system::all_library_reference());