Blender V5.3
blender::bUserAssetLibrary Struct Reference

#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] = {}

Detailed Description

Definition at line 663 of file DNA_userdef_types.h.

Member Data Documentation

◆ _pad0

char blender::bUserAssetLibrary::_pad0[4] = {}

Definition at line 710 of file DNA_userdef_types.h.

◆ auth_token

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().

◆ dirpath

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().

◆ extension_id

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().

◆ flag

◆ import_method

◆ invalid_uuid

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().

◆ name

◆ next

struct bUserAssetLibrary* blender::bUserAssetLibrary::next = nullptr

Definition at line 664 of file DNA_userdef_types.h.

◆ prev

struct bUserAssetLibrary * blender::bUserAssetLibrary::prev = nullptr

Definition at line 664 of file DNA_userdef_types.h.

◆ remote_url

◆ resolved_dirpath

◆ uuid

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().


The documentation for this struct was generated from the following file: