|
Blender V5.3
|
#include <remote_library.hh>
Inherits blender::asset_system::RemoteAssetLibrary.
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 37 of file remote_library.hh.
| blender::asset_system::PreferencesRemoteAssetLibrary::PreferencesRemoteAssetLibrary | ( | const bUserAssetLibrary & | custom_library | ) |
Definition at line 126 of file remote_library.cc.
References blender::ASSET_LIBRARY_CUSTOM, blender::ASSET_LIBRARY_USE_REMOTE_URL, blender::BLI_assert(), blender::bUserAssetLibrary::flag, blender::asset_system::AssetLibrary::may_override_import_method_, blender::asset_system::AssetLibrary::name(), blender::asset_system::RemoteAssetLibrary::remote_url(), blender::asset_system::RemoteAssetLibrary::RemoteAssetLibrary(), and blender::true.
|
overridevirtual |
Reimplemented from blender::asset_system::AssetLibrary.
Definition at line 175 of file remote_library.cc.
References blender::ASSET_LIBRARY_USE_AUTH_TOKEN, blender::bUserAssetLibrary::auth_token, blender::BLI_assert(), blender::bUserAssetLibrary::flag, and blender::blender::StringRefBase::is_empty().
|
overridevirtual |
Get the import method that should be used for assets in this library.
Implements blender::asset_system::AssetLibrary.
Definition at line 195 of file remote_library.cc.
References blender::ASSET_IMPORT_APPEND, blender::ASSET_IMPORT_APPEND_REUSE, blender::ASSET_IMPORT_PACK, BLI_assert_unreachable, ELEM, and blender::bUserAssetLibrary::import_method.
| bool blender::asset_system::PreferencesRemoteAssetLibrary::is_enabled | ( | ) | const |
Definition at line 165 of file remote_library.cc.
References blender::BKE_preferences_asset_library_is_available(), and blender::U.
|
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 139 of file remote_library.cc.
References blender::ASSET_LIBRARY_CUSTOM, blender::ASSET_LIBRARY_USE_REMOTE_URL, blender::BLI_assert(), BLI_assert_unreachable, blender::BLI_findindex(), blender::AssetLibraryReference::custom_library_index, blender::bUserAssetLibrary::flag, blender::AssetLibraryReference::type, and blender::U.
|
overridevirtual |
Get the bUserAssetLibrary that's backing this asset library, if there is any.
Reimplemented from blender::asset_system::AssetLibrary.
Definition at line 160 of file remote_library.cc.