33class AssetRepresentation;
52 std::shared_ptr<std::string> root_path_;
78 AssetStorage asset_storage_;
151 std::unique_ptr<AssetMetaData> metadata);
272 const char *
name,
const char *library_dirpath);
302 char r_path_buffer[ 1282],
blender::asset_system::AssetLibrary * AS_asset_library_load(const Main *bmain, const AssetLibraryReference &library_reference)
void AS_asset_library_remap_ids(const blender::bke::id::IDRemapper &mappings)
std::string AS_asset_library_find_suitable_root_path_from_main(const Main *bmain)
void AS_asset_libraries_exit()
void AS_asset_library_essential_import_method_update()
void AS_asset_library_import_method_ensure_valid(Main &bmain)
std::string AS_asset_library_root_path_from_library_ref(const AssetLibraryReference &library_reference)
std::string AS_asset_library_find_suitable_root_path_from_path(blender::StringRefNull input_path)
bool AS_asset_library_has_any_unsaved_catalogs()
void AS_asset_full_path_explode_from_weak_ref(const AssetWeakReference *asset_reference, char r_path_buffer[1282], char **r_dir, char **r_group, char **r_name)
blender::asset_system::AssetLibrary * AS_asset_library_load_from_directory(const char *name, const char *library_dirpath)
void on_blend_save_post(Main *bmain, PointerRNA **pointers, int num_pointers)
std::optional< eAssetImportMethod > import_method_
void load_or_reload_catalogs()
static bool save_catalogs_when_file_is_saved
eAssetLibraryType library_type() const
void on_blend_save_handler_register()
std::unique_ptr< AssetCatalogService > catalog_service_
friend class AssetLibraryService
void remap_ids_and_remove_invalid(const blender::bke::id::IDRemapper &mappings)
bool may_override_import_method_
std::weak_ptr< AssetRepresentation > add_local_id_asset(ID &id)
friend class AssetRepresentation
bCallbackFuncStore on_save_callback_store_
AssetCatalogService & catalog_service() const
static void foreach_loaded(FunctionRef< void(AssetLibrary &)> fn, bool include_all_library)
AssetLibrary(eAssetLibraryType library_type, StringRef name="", StringRef root_path="")
bool remove_asset(AssetRepresentation &asset)
void refresh_catalog_simplename(AssetMetaData *asset_data)
Mutex catalog_service_mutex_
std::string resolve_asset_weak_reference_to_full_path(const AssetWeakReference &asset_reference)
StringRefNull name() const
StringRefNull root_path() const
virtual void refresh_catalogs()
std::weak_ptr< AssetRepresentation > add_external_asset(StringRef relative_asset_path, StringRef name, int id_type, std::unique_ptr< AssetMetaData > metadata)
void on_blend_save_handler_unregister()
virtual std::optional< AssetLibraryReference > library_reference() const =0
AssetLibraryReference all_library_reference()
AssetLibraryReference current_file_library_reference()
void all_library_reload_catalogs_if_dirty()
Vector< AssetLibraryReference > all_valid_asset_library_refs()