Blender V4.3
blender::asset_system::AllAssetLibrary Class Reference

#include <asset_library_all.hh>

Inherits blender::asset_system::AssetLibrary.

Public Member Functions

 AllAssetLibrary ()
 
void refresh_catalogs () override
 
void rebuild_catalogs_from_nested (bool reload_nested_catalogs)
 
void tag_catalogs_dirty ()
 
bool is_catalogs_dirty () const
 
- Public Member Functions inherited from blender::asset_system::AssetLibrary
 AssetLibrary (eAssetLibraryType library_type, StringRef name="", StringRef root_path="")
 
virtual ~AssetLibrary ()
 
void load_catalogs ()
 
AssetCatalogServicecatalog_service () const
 
std::weak_ptr< AssetRepresentationadd_external_asset (StringRef relative_asset_path, StringRef name, int id_type, std::unique_ptr< AssetMetaData > metadata)
 
std::weak_ptr< AssetRepresentationadd_local_id_asset (StringRef relative_asset_path, ID &id)
 
bool remove_asset (AssetRepresentation &asset)
 
void remap_ids_and_remove_invalid (const blender::bke::id::IDRemapper &mappings)
 
void refresh_catalog_simplename (AssetMetaData *asset_data)
 
void on_blend_save_handler_register ()
 
void on_blend_save_handler_unregister ()
 
void on_blend_save_post (Main *bmain, PointerRNA **pointers, int num_pointers)
 
std::string resolve_asset_weak_reference_to_full_path (const AssetWeakReference &asset_reference)
 
eAssetLibraryType library_type () const
 
StringRefNull name () const
 
StringRefNull root_path () const
 

Additional Inherited Members

- Static Public Member Functions inherited from blender::asset_system::AssetLibrary
static void foreach_loaded (FunctionRef< void(AssetLibrary &)> fn, bool include_all_library)
 
- Static Public Attributes inherited from blender::asset_system::AssetLibrary
static bool save_catalogs_when_file_is_saved = true
 
- Protected Attributes inherited from blender::asset_system::AssetLibrary
std::unique_ptr< AssetCatalogServicecatalog_service_
 
std::mutex catalog_service_mutex_
 
std::optional< eAssetImportMethodimport_method_
 
bool may_override_import_method_ = false
 
bool use_relative_path_ = true
 
bCallbackFuncStore on_save_callback_store_ {}
 

Detailed Description

Definition at line 17 of file asset_library_all.hh.

Constructor & Destructor Documentation

◆ AllAssetLibrary()

blender::asset_system::AllAssetLibrary::AllAssetLibrary ( )

Definition at line 23 of file asset_library_all.cc.

Member Function Documentation

◆ is_catalogs_dirty()

bool blender::asset_system::AllAssetLibrary::is_catalogs_dirty ( ) const

Definition at line 71 of file asset_library_all.cc.

◆ rebuild_catalogs_from_nested()

void blender::asset_system::AllAssetLibrary::rebuild_catalogs_from_nested ( bool reload_nested_catalogs)

Update the available catalogs and catalog tree from the nested asset libraries. Completely recreates the catalog service (invalidating pointers to the previous one).

Parameters
reload_nested_catalogsRe-read catalog definitions of nested libraries from disk and merge them into the in-memory representations.

Definition at line 25 of file asset_library_all.cc.

References blender::asset_system::AssetLibrary::catalog_service(), and blender::asset_system::AssetLibrary::foreach_loaded().

◆ refresh_catalogs()

void blender::asset_system::AllAssetLibrary::refresh_catalogs ( )
overridevirtual

Load catalogs that have changed on disk.

Reimplemented from blender::asset_system::AssetLibrary.

Definition at line 76 of file asset_library_all.cc.

◆ tag_catalogs_dirty()

void blender::asset_system::AllAssetLibrary::tag_catalogs_dirty ( )

Definition at line 66 of file asset_library_all.cc.


The documentation for this class was generated from the following files: