Fix #104975: Essentials assets missing from node link-drag search

Alternatively this could use `ASSET_LIBRARY_ALL` like
`add_node_search.cc`, but then it would need a different
method for skipping duplicate local assets.
This commit is contained in:
Hans Goudey 2023-02-21 08:44:52 -05:00
parent b5fa180d5d
commit 3e721195b0

@ -253,11 +253,20 @@ static void gather_search_link_ops_for_all_assets(const bContext &C,
C, node_tree, socket, library_ref, true, search_link_ops); C, node_tree, socket, library_ref, true, search_link_ops);
} }
AssetLibraryReference library_ref{}; {
library_ref.custom_library_index = -1; AssetLibraryReference library_ref{};
library_ref.type = ASSET_LIBRARY_LOCAL; library_ref.custom_library_index = -1;
gather_search_link_ops_for_asset_library( library_ref.type = ASSET_LIBRARY_ESSENTIALS;
C, node_tree, socket, library_ref, false, search_link_ops); gather_search_link_ops_for_asset_library(
C, node_tree, socket, library_ref, true, search_link_ops);
}
{
AssetLibraryReference library_ref{};
library_ref.custom_library_index = -1;
library_ref.type = ASSET_LIBRARY_LOCAL;
gather_search_link_ops_for_asset_library(
C, node_tree, socket, library_ref, false, search_link_ops);
}
} }
/** /**