|
Blender V5.3
|
#include <all_library.hh>
Inherits blender::asset_system::AssetLibrary.
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 18 of file all_library.hh.
| blender::asset_system::AllAssetLibrary::AllAssetLibrary | ( | ) |
Definition at line 26 of file all_library.cc.
References blender::ASSET_LIBRARY_ALL, blender::asset_system::AssetLibrary::AssetLibrary(), and blender::true.
|
overridevirtual |
(Re-)download the remote listing for this library.
This only has an effect for asset libraries that are themselves a remote library, or contain one (such as the "Essentials" library if it includes online essentials, or the "All" if there are any remote libraries included).
The "Allow Online Access" option will be enforced internally, but probably some check to give a user message should be done at a higher level.
Reimplemented from blender::asset_system::AssetLibrary.
Definition at line 32 of file all_library.cc.
References blender::asset_system::AssetLibrary::AssetLibrary(), blender::asset_system::AssetLibrary::auth_token(), blender::asset_system::AssetLibrary::foreach_loaded(), blender::asset_system::remote_library_request_download(), blender::asset_system::AssetLibrary::remote_url(), and blender::asset_system::AssetLibrary::root_path().
|
overridevirtual |
Get the import method that should be used for assets in this library.
Implements blender::asset_system::AssetLibrary.
Definition at line 51 of file all_library.cc.
| bool blender::asset_system::AllAssetLibrary::is_catalogs_dirty | ( | ) | const |
Definition at line 121 of file all_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.
Definition at line 46 of file all_library.cc.
References blender::asset_system::all_library_reference().
| 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).
| reload_nested_catalogs | Re-read catalog definitions of nested libraries from disk and merge them into the in-memory representations. |
Definition at line 56 of file all_library.cc.
References blender::asset_system::AssetLibrary::AssetLibrary(), blender::asset_system::AssetLibrary::catalog_service(), blender::asset_system::AssetLibrary::foreach_loaded(), blender::asset_system::AssetCatalogService::reload_catalogs(), blender::asset_system::AssetLibrary::remote_url(), blender::U, and USER_EXPERIMENTAL_TEST.
Referenced by refresh_catalogs().
|
overridevirtual |
Load catalogs that have changed on disk.
Reimplemented from blender::asset_system::AssetLibrary.
Definition at line 126 of file all_library.cc.
References rebuild_catalogs_from_nested().
| void blender::asset_system::AllAssetLibrary::tag_catalogs_dirty | ( | ) |
Definition at line 116 of file all_library.cc.