|
Blender V4.3
|
#include <DNA_asset_types.h>
Public Attributes | |
| short | type |
| char | _pad1 [2] |
| int | custom_library_index |
Information to identify an 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 134 of file DNA_asset_types.h.
| char AssetLibraryReference::_pad1[2] |
Definition at line 136 of file DNA_asset_types.h.
| 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 142 of file DNA_asset_types.h.
Referenced by blender::asset_system::all_library_reference(), blender::asset_system::all_valid_asset_library_refs(), filelist_compare_asset_libraries(), filelist_readjob_all_asset_library(), fileselect_ensure_updated_asset_params(), fileselect_refresh_asset_params(), blender::asset_system::AssetLibraryService::find_custom_asset_library_from_library_ref(), blender::ed::sculpt_paint::get_asset_library_from_prop(), blender::ed::sculpt_paint::library_ref_to_user_library(), blender::ed::asset::library_reference_from_enum_value(), blender::ed::asset::library_reference_to_enum_value(), blender::ed::asset::library_reference_to_rna_enum_itemf(), blender::ed::asset::selected_asset_library(), and blender::ed::sculpt_paint::user_library_to_library_ref().
| short AssetLibraryReference::type |
Definition at line 135 of file DNA_asset_types.h.
Referenced by blender::ed::asset::list::asset_library_reference_to_fileselect_type(), blender::ed::asset::list::clear(), ED_fileselect_is_local_asset_library(), file_draw_hint_if_invalid(), filelist_compare_asset_libraries(), filelist_contains_main(), fileselect_ensure_updated_asset_params(), fileselect_refresh_asset_params(), blender::asset_system::AssetLibraryService::find_custom_asset_library_from_library_ref(), blender::asset_system::AssetLibraryService::get_asset_library(), blender::asset_system::tests::AssetRepresentationTest::get_builtin_library_from_type(), blender::ed::asset::get_local_asset_from_relative_identifier(), blender::ed::sculpt_paint::library_is_editable(), blender::ed::sculpt_paint::library_ref_to_user_library(), blender::ed::asset::library_reference_from_enum_value(), blender::ed::asset::library_reference_to_enum_value(), blender::ed::asset::library_reference_to_rna_enum_itemf(), blender::ed::asset::shelf::library_selector_draw(), blender::asset_system::AssetLibraryService::root_path_from_library_ref(), blender::asset_system::tests::TEST_F(), and uiTemplateAssetView().