54 int library_count = 0;
59 int libraries_done_count = 0;
68 if (&nested_library == current_file_library) {
77 float progress_this = 0.0f;
79 if (std::optional<std::string> remote_url = nested_library.
remote_url()) {
80 if (std::unique_ptr<RemoteLibraryRequest> *request =
93 true, job_params, stop, do_update, &progress_this);
99 true, job_params, stop, do_update, &progress_this);
102 libraries_done_count++;
103 *progress =
float(libraries_done_count) / library_count;
bool contains(const Key &key) const
constexpr const char * c_str() const
virtual std::optional< StringRefNull > remote_url() const
static void foreach_loaded(FunctionRef< void(AssetLibrary &)> fn, bool include_all_library)
StringRefNull root_path() const
constexpr bool is_empty() const
#define FILEDIR_NBR_ENTRIES_UNSET
void foreach_registered_user_remote_library(FunctionRef< void(bUserAssetLibrary &)> fn)
void all_library_reload_catalogs_if_dirty()
void all_library_tag_catalogs_dirty()
StringRefNull online_essentials_cache_directory_path()
StringRefNull online_essentials_url()
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void filelist_set_readjob_all_asset_library(FileList *filelist)
char * STRNCPY(char(&dst)[N], const char *src)
static void filelist_start_job_all_asset_library(FileListReadJob *job_params)
void filelist_readjob_main_assets_add_items(FileListReadJob *job_params, bool *, bool *do_update, float *)
void remote_asset_library_request(FileListReadJob *job_params, const asset_system::RemoteLibraryDefinitionRef &library)
bool is_filtered_asset_library(FileListInternEntry *file, const char *root, FileListFilter *filter)
void prepare_filter_asset_library(const FileList *filelist, FileListFilter *filter)
void remote_asset_library_load(FileListReadJob *job_params, RemoteLibraryRequest &request, bool *stop, bool *do_update, float *progress)
bool filelist_checkdir_return_always_valid(const FileList *, char[1024+258], const bool)
void filelist_readjob_load_asset_library_data(FileListReadJob *job_params, bool *do_update)
asset_system::AssetLibrary * AS_asset_library_load(const Main *bmain, const AssetLibraryReference &library_reference)
@ FILELIST_TAGS_USES_MAIN_DATA
@ FILELIST_TAGS_APPLY_FUZZY_SEARCH
void filelist_timer_step_remote_asset_library(FileListReadJob *job_params)
bool BKE_preferences_asset_library_is_available(const struct UserDef *userdef, const struct bUserAssetLibrary *library) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void filelist_readjob_recursive_dir_add_items(const bool do_lib, FileListReadJob *job_params, const bool *stop, bool *do_update, float *progress)
static void filelist_readjob_all_asset_library(FileListReadJob *job_params, bool *stop, bool *do_update, float *progress)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< struct FileListInternEntry > entries
asset_system::AssetLibrary * load_asset_library
Map< std::string, std::unique_ptr< RemoteLibraryRequest > > remote_library_requests
void(*) prepare_filter_fn(const FileList *filelist, FileListFilter *filter)
void(*) timer_step_fn(FileListReadJob *job_params)
bool(*) check_dir_fn(const FileList *filelist, char dirpath[FILE_MAX_LIBEXTRA], const bool do_change)
void(*) start_job_fn(FileListReadJob *job_params)
void(*) read_job_fn(FileListReadJob *job_params, bool *stop, bool *do_update, float *progress)
bool(*) filter_fn(FileListInternEntry *file, const char *root, FileListFilter *filter)
asset_system::AssetLibrary * asset_library