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:
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);
|
||||
}
|
||||
|
||||
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);
|
||||
{
|
||||
AssetLibraryReference library_ref{};
|
||||
library_ref.custom_library_index = -1;
|
||||
library_ref.type = ASSET_LIBRARY_ESSENTIALS;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user