|
Blender V5.3
|
#include <DNA_userdef_types.h>
Public Attributes | |
| struct bUserAssetLibrary * | next = nullptr |
| struct bUserAssetLibrary * | prev = nullptr |
| char | name [64] = "" |
| char | dirpath [1024] = "" |
| char | resolved_dirpath [1024] = "" |
| char | remote_url [1024] |
| char * | auth_token = nullptr |
| bUUID | uuid |
| char * | invalid_uuid = nullptr |
| char | extension_id [128] = "" |
| short | import_method = ASSET_IMPORT_PACK |
| short | flag = ASSET_LIBRARY_RELATIVE_PATH |
| char | _pad0 [4] = {} |
Definition at line 663 of file DNA_userdef_types.h.
| char blender::bUserAssetLibrary::_pad0[4] = {} |
Definition at line 710 of file DNA_userdef_types.h.
| char* blender::bUserAssetLibrary::auth_token = nullptr |
Secret access token for remote repositories (allocated). Only use when ASSET_LIBRARY_USE_AUTH_TOKEN is set. Update using BKE_preferences_remote_asset_library_auth_token_set() only.
Definition at line 689 of file DNA_userdef_types.h.
Referenced by blender::asset_system::PreferencesRemoteAssetLibrary::auth_token().
| char blender::bUserAssetLibrary::dirpath[1024] = "" |
The path on disk for this asset library. For remote libraries (ASSET_LIBRARY_USE_REMOTE_URL), this is the download cache directory, where already downloaded assets will be placed.
Definition at line 672 of file DNA_userdef_types.h.
Referenced by blender::rna_def_project_asset_library_collection(), and blender::rna_def_userdef_asset_library_collection().
| char blender::bUserAssetLibrary::extension_id[128] = "" |
The {repo_module}.{pkg_id} of the extension defining this library (see #bUserExtensionRepo::module), empty for libraries the user defined.
Definition at line 706 of file DNA_userdef_types.h.
Referenced by blender::BKE_preferences_extension_asset_library_repo_get(), blender::project_asset_library_remove_exec(), and blender::rna_def_userdef_asset_library_collection().
| short blender::bUserAssetLibrary::flag = ASSET_LIBRARY_RELATIVE_PATH |
Definition at line 709 of file DNA_userdef_types.h.
Referenced by blender::ed::asset::list::asset_library_reference_to_fileselect_type(), blender::asset_system::PreferencesRemoteAssetLibrary::auth_token(), blender::blo_do_versions_userdef(), blender::AssetLibraryListItem::build_row(), blender::ui::ProjectAssetLibraryListItem::build_row(), blender::ed::animrig::create_pose_asset_user_library(), blender::ed::asset::custom_library_is_valid(), blender::ED_userpref_asset_library_new(), blender::ED_userpref_asset_library_remove(), blender::fileselect_refresh_asset_params(), blender::asset_system::AssetLibraryService::get_asset_library(), blender::ed::asset::get_user_library_ref_for_save(), blender::asset_system::PreferencesRemoteAssetLibrary::library_reference(), blender::asset_system::PreferencesRemoteAssetLibrary::PreferencesRemoteAssetLibrary(), blender::bke::project_asset_library_add(), blender::ui::project_ui_asset_libraries(), blender::asset_system::RemoteLibraryDefinitionRef::RemoteLibraryDefinitionRef(), blender::asset_system::PreferencesOnDiskAssetLibrary::use_relative_paths(), blender::userpref_ui_asset_libraries(), and blender::write_userdef().
| short blender::bUserAssetLibrary::import_method = ASSET_IMPORT_PACK |
| char* blender::bUserAssetLibrary::invalid_uuid = nullptr |
If the asset library was created with an invalid UUID string, it will be stored here. The library will be disabled and we will notify the user that it has an invalid UUID. We store the invalid UUID string so that we don't introduce any data loss when saving the UUIDs to files. (If it is invalid it is up to the end user to fix it.
Definition at line 701 of file DNA_userdef_types.h.
Referenced by blender::ui::ProjectAssetLibraryListItem::build_row(), and blender::bke::project_asset_library_add().
| char blender::bUserAssetLibrary::name[64] = "" |
Definition at line 666 of file DNA_userdef_types.h.
Referenced by blender::ed::asset::asset_bundle_install_exec(), blender::bke::asset_weak_reference_for_user_library(), blender::blo_do_versions_userdef(), blender::ed::asset::custom_library_is_valid(), blender::asset_system::AssetLibraryService::get_asset_library_on_disk_custom_preferences(), blender::preferences_asset_library_add_exec(), blender::project_asset_library_add_exec(), blender::rna_def_project_asset_library_collection(), and blender::rna_def_userdef_asset_library_collection().
| struct bUserAssetLibrary* blender::bUserAssetLibrary::next = nullptr |
Definition at line 664 of file DNA_userdef_types.h.
| struct bUserAssetLibrary * blender::bUserAssetLibrary::prev = nullptr |
Definition at line 664 of file DNA_userdef_types.h.
| char blender::bUserAssetLibrary::remote_url[1024] |
Only for remote asset libraries (ASSET_LIBRARY_USE_REMOTE_URL is set). Update using BKE_preferences_remote_asset_library_url_set() only.
Definition at line 683 of file DNA_userdef_types.h.
Referenced by blender::AssetLibraryListItem::build_row(), blender::ui::ProjectAssetLibraryListItem::build_row(), blender::asset_system::AssetLibraryService::get_asset_library(), blender::asset_system::AssetLibraryService::get_preferences_remote_asset_library(), blender::PREFERENCES_OT_asset_library_add(), blender::PROJECT_OT_asset_library_add(), blender::rna_def_project_asset_library_collection(), and blender::rna_def_userdef_asset_library_collection().
| char blender::bUserAssetLibrary::resolved_dirpath[1024] = "" |
The "resolved" dirpath. This is the version of dirpath that has had variable expansion done on it and has normalized the path string and converted the directory separator to use the OS native version. This should always be used when looking for the actual asset library on disk.
Definition at line 678 of file DNA_userdef_types.h.
Referenced by blender::bke::asset_edit_weak_reference_from_id(), blender::bke::asset_root_path_for_save(), blender::bke::asset_weak_reference_for_user_library(), blender::BKE_preferences_asset_library_containing_path(), blender::fileselect_refresh_asset_params(), blender::asset_system::AssetLibraryService::get_asset_library(), blender::asset_system::AssetLibraryService::get_asset_library_on_disk_custom_preferences(), blender::ed::asset::is_contained_in_selected_asset_library(), blender::asset_system::AssetLibraryService::resolve_asset_weak_reference_to_library_path(), blender::asset_system::AssetLibraryService::root_path_from_library_ref(), and blender::ed::asset::set_filepath_for_asset_lib().
| bUUID blender::bUserAssetLibrary::uuid |
The UUID of the asset library. This is used to make deduplication possible when using the same asset library from different computers.
Definition at line 694 of file DNA_userdef_types.h.
Referenced by blender::rna_def_project_asset_library_collection().