|
Blender V5.3
|
#include <on_disk_library.hh>
Inherits blender::asset_system::AssetLibrary.
Inherited by blender::asset_system::EssentialsAssetLibrary, and blender::asset_system::PreferencesOnDiskAssetLibrary.
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::shared_ptr< AssetCatalogService > | catalog_service_ |
| std::recursive_mutex | catalog_service_mutex_ |
| bool | may_override_import_method_ = false |
| bCallbackFuncStore | on_save_callback_store_ {} |
Definition at line 15 of file on_disk_library.hh.
| blender::asset_system::OnDiskAssetLibrary::OnDiskAssetLibrary | ( | eAssetLibraryType | library_type, |
| StringRef | name, | ||
| StringRef | root_path, | ||
| bool | is_read_only ) |
Definition at line 13 of file on_disk_library.cc.
References blender::asset_system::AssetLibrary::AssetLibrary(), blender::asset_system::AssetLibrary::is_read_only(), blender::asset_system::AssetLibrary::library_type(), blender::asset_system::AssetLibrary::name(), blender::asset_system::AssetLibrary::on_blend_save_handler_register(), and blender::asset_system::AssetLibrary::root_path().
Referenced by blender::asset_system::EssentialsAssetLibrary::EssentialsAssetLibrary(), and blender::asset_system::PreferencesOnDiskAssetLibrary::PreferencesOnDiskAssetLibrary().
|
overridevirtual |
Get the import method that should be used for assets in this library.
Implements blender::asset_system::AssetLibrary.
Reimplemented in blender::asset_system::PreferencesOnDiskAssetLibrary.
Definition at line 37 of file on_disk_library.cc.
|
virtual |
Reimplemented in blender::asset_system::PreferencesOnDiskAssetLibrary.
Definition at line 47 of file on_disk_library.cc.
|
overridevirtual |
Get the AssetLibraryReference referencing this library. This can fail for custom libraries, which have too look up their bUserAssetLibrary. It will not return a value for values that were loaded directly through a path.
Implements blender::asset_system::AssetLibrary.
Reimplemented in blender::asset_system::PreferencesOnDiskAssetLibrary.
Definition at line 22 of file on_disk_library.cc.
References blender::ASSET_LIBRARY_LOCAL, BLI_assert_msg, blender::AssetLibraryReference::custom_library_index, blender::asset_system::AssetLibrary::library_type(), and blender::AssetLibraryReference::type.
|
overridevirtual |
Load catalogs that have changed on disk.
Reimplemented from blender::asset_system::AssetLibrary.
Definition at line 42 of file on_disk_library.cc.
References blender::asset_system::AssetLibrary::catalog_service(), and blender::asset_system::AssetCatalogService::reload_catalogs().