Blender V4.3
asset_library_reference_enum.cc File Reference
#include "BLI_listbase.h"
#include "BKE_preferences.h"
#include "DNA_userdef_types.h"
#include "UI_resources.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "ED_asset_library.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::asset
 

Functions

int blender::ed::asset::library_reference_to_enum_value (const AssetLibraryReference *library)
 
AssetLibraryReference blender::ed::asset::library_reference_from_enum_value (int value)
 
const EnumPropertyItemblender::ed::asset::library_reference_to_rna_enum_itemf (bool include_generated)
 

Detailed Description

Helpers to convert asset library references from and to enum values and RNA enums. In some cases it's simply not possible to reference an asset library with #AssetLibraryReferences. This API guarantees a safe translation to indices/enum values for as long as there is no change in the order of registered custom asset libraries.

Definition in file asset_library_reference_enum.cc.