Blender V5.3
blender::asset_system::UserAssetLibraryWrapper Class Reference

#include <common.hh>

Public Member Functions

 UserAssetLibraryWrapper (const bUserAssetLibrary &user_asset_library)
const bUserAssetLibrary * user_asset_library () const

Detailed Description

Wrapper to get the bUserAssetLibrary from the preferences (if still valid).

Definition at line 20 of file asset_system/intern/library_types/common.hh.

Constructor & Destructor Documentation

◆ UserAssetLibraryWrapper()

blender::asset_system::UserAssetLibraryWrapper::UserAssetLibraryWrapper ( const bUserAssetLibrary & user_asset_library)
explicit

Definition at line 17 of file asset_system/intern/library_types/common.cc.

References user_asset_library().

Member Function Documentation

◆ user_asset_library()

const bUserAssetLibrary * blender::asset_system::UserAssetLibraryWrapper::user_asset_library ( ) const

Returns a pointer to the user's asset library entry in the preferences, or nullptr if not found (meaning it was removed/freed).

Definition at line 22 of file asset_system/intern/library_types/common.cc.

References blender::BLI_findindex(), and blender::U.

Referenced by UserAssetLibraryWrapper().


The documentation for this class was generated from the following files: