Blender  V3.3
Public Attributes | List of all members
AssetLibraryReference Struct Reference

#include <DNA_asset_types.h>

Inheritance diagram for AssetLibraryReference:
blender::ed::asset::AssetLibraryReferenceWrapper

Public Attributes

short type
 
char _pad1 [2]
 
int custom_library_index
 

Detailed Description

Information to identify a asset library. May be either one of the predefined types (current 'Main', builtin library, project library), or a custom type as defined in the Preferences.

If the type is set to ASSET_LIBRARY_CUSTOM, custom_library_index must be set to identify the custom library. Otherwise it is not used.

Definition at line 105 of file DNA_asset_types.h.

Member Data Documentation

◆ _pad1

char AssetLibraryReference::_pad1[2]

Definition at line 107 of file DNA_asset_types.h.

◆ custom_library_index

int AssetLibraryReference::custom_library_index

If showing a custom asset library (ASSET_LIBRARY_CUSTOM), this is the index of the bUserAssetLibrary within UserDef.asset_libraries. Should be ignored otherwise (but better set to -1 then, for sanity and debugging).

Definition at line 113 of file DNA_asset_types.h.

Referenced by ED_asset_library_reference_to_rna_enum_itemf(), filelist_compare_asset_libraries(), fileselect_ensure_updated_asset_params(), blender::ed::asset::AssetLibraryReferenceWrapper::hash(), selected_asset_library(), and blender::ed::asset::AssetList::setup().

◆ type

short AssetLibraryReference::type

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