56 if (
U.experimental.no_data_block_packing) {
66 std::unique_ptr<AssetCatalogService> new_catalog_service = std::make_unique<AssetCatalogService>(
72 const bool is_online_lib =
library->remote_url().has_value();
73 if (is_online_lib && skip_remote_libraries) {
77 library->catalog_service().reload_catalogs();
79 new_catalog_service->add_from_existing(
83 if (existing.path == to_be_ignored.path) {
85 "multiple definitions of catalog %s (path: %s), ignoring duplicate",
86 existing.catalog_id.str().c_str(),
87 existing.path.c_str());
99 "multiple definitions of catalog %s with differing paths (%s vs. %s), "
100 "ignoring second one",
101 existing.catalog_id.str().c_str(),
102 existing.path.c_str(),
103 to_be_ignored.path.c_str());
108 load_catalogs_fn(
this);
113 std::lock_guard
lock{catalog_service_mutex_};
114 catalog_service_ = std::move(new_catalog_service);
119 static std::string path = []() {
122 return datafiles_path.value_or(
"");
148 static std::string path = []() {
#define USER_EXPERIMENTAL_TEST(userdef, member)
constexpr StringRef drop_suffix(int64_t n) const
constexpr StringRef drop_known_suffix(StringRef suffix) const
std::optional< AssetLibraryReference > library_reference() const override
void force_remote_listing_download() const override
void refresh_catalogs() override
std::optional< eAssetImportMethod > import_method() const override
OnDiskAssetLibrary(eAssetLibraryType library_type, StringRef name, StringRef root_path, bool is_read_only)
static constexpr StringRefNull URL
std::optional< AssetLibraryReference > library_reference() const override
OnlineEssentialsLibrary()
RemoteAssetLibrary(eAssetLibraryType library_type, bool is_read_only, StringRef remote_url, StringRef name, StringRef root_path)
constexpr const char & back() const
constexpr bool is_empty() const
constexpr int64_t size() const
constexpr bool endswith(StringRef suffix) const
std::string resolve_directory_path(StringRef directory)
bool is_online_essentials_dirpath(StringRef dirpath)
bool skip_experimental_asset_catalog(const UUID &catalog_id)
StringRefNull online_essentials_cache_directory_path()
constexpr StringRefNull REMOTE_LIBRARY_TOP_META_FILE_NAME
StringRefNull online_essentials_url()
std::string remote_library_cache_directory_path(StringRefNull library_dirname)
StringRefNull essentials_directory_path()
void remote_library_request_download(const RemoteLibraryDefinitionRef &library_definition)
AssetLibraryReference online_essentials_library_reference()
bool is_online_essentials_url(StringRef url)
bool remote_library_url_ends_with_top_meta_file_name(const StringRef url)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
@ USER_ASSETS_USE_ONLINE_ESSENTIALS
@ ASSET_LIBRARY_ESSENTIALS
@ ASSET_LIBRARY_ONLINE_ESSENTIALS
std::optional< std::string > BKE_appdir_folder_id(int folder_id, const char *subfolder) ATTR_WARN_UNUSED_RESULT
@ ASSET_IMPORT_APPEND_REUSE
asset_system::AssetLibrary * AS_asset_library_load(const Main *bmain, const AssetLibraryReference &library_reference)
@ BLENDER_SYSTEM_DATAFILES