|
Blender V5.3
|
#include <preferences_on_disk_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::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 17 of file preferences_on_disk_library.hh.
|
explicit |
Definition at line 21 of file preferences_on_disk_library.cc.
References blender::ASSET_LIBRARY_CUSTOM, blender::false, blender::asset_system::AssetLibrary::name(), blender::asset_system::OnDiskAssetLibrary::OnDiskAssetLibrary(), and user_asset_library().
|
overridevirtual |
Get the import method that should be used for assets in this library.
Reimplemented from blender::asset_system::OnDiskAssetLibrary.
Definition at line 55 of file preferences_on_disk_library.cc.
References blender::bUserAssetLibrary::import_method, and user_asset_library().
|
overridevirtual |
Reimplemented from blender::asset_system::OnDiskAssetLibrary.
Definition at line 75 of file preferences_on_disk_library.cc.
References blender::BKE_preferences_asset_library_is_available(), blender::U, and user_asset_library().
|
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.
Reimplemented from blender::asset_system::OnDiskAssetLibrary.
Definition at line 31 of file preferences_on_disk_library.cc.
References blender::ASSET_LIBRARY_CUSTOM, BLI_assert_unreachable, blender::BLI_findindex(), blender::AssetLibraryReference::custom_library_index, blender::AssetLibraryReference::type, blender::U, and user_asset_library().
|
overridevirtual |
Reimplemented from blender::asset_system::AssetLibrary.
Definition at line 65 of file preferences_on_disk_library.cc.
References blender::ASSET_LIBRARY_RELATIVE_PATH, blender::bUserAssetLibrary::flag, and user_asset_library().
|
overridevirtual |
Get the bUserAssetLibrary that's backing this asset library, if there is any.
Reimplemented from blender::asset_system::AssetLibrary.
Definition at line 50 of file preferences_on_disk_library.cc.
Referenced by import_method(), is_enabled(), library_reference(), PreferencesOnDiskAssetLibrary(), and use_relative_paths().