|
Blender V5.0
|
#include <essentials_library.hh>
Inherits blender::asset_system::OnDiskAssetLibrary.
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< AssetCatalogService > | catalog_service_ |
| Mutex | catalog_service_mutex_ |
| std::optional< eAssetImportMethod > | import_method_ |
| bool | may_override_import_method_ = false |
| bool | use_relative_path_ = true |
| bCallbackFuncStore | on_save_callback_store_ {} |
Definition at line 15 of file essentials_library.hh.
| blender::asset_system::EssentialsAssetLibrary::EssentialsAssetLibrary | ( | ) |
Definition at line 20 of file essentials_library.cc.
References ASSET_LIBRARY_ESSENTIALS, and blender::asset_system::OnDiskAssetLibrary::OnDiskAssetLibrary().
|
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.
Definition at line 31 of file essentials_library.cc.
References ASSET_LIBRARY_ESSENTIALS, AssetLibraryReference::custom_library_index, and AssetLibraryReference::type.
| void blender::asset_system::EssentialsAssetLibrary::update_default_import_method | ( | ) |
Update the default import method based on whether packed data-blocks are supported.
Definition at line 39 of file essentials_library.cc.
References ASSET_IMPORT_APPEND_REUSE, ASSET_IMPORT_PACK, blender::asset_system::AssetLibrary::import_method_, and U.
Referenced by AS_asset_library_essential_import_method_update().