Blender  V3.3
Functions
asset_type.cc File Reference
#include "BLI_utildefines.h"
#include "DNA_userdef_types.h"
#include "BKE_lib_id.h"
#include "ED_asset_type.h"

Go to the source code of this file.

Functions

bool ED_asset_type_id_is_non_experimental (const ID *id)
 
bool ED_asset_type_is_supported (const ID *id)
 
int64_t ED_asset_types_supported_as_filter_flags ()
 

Function Documentation

◆ ED_asset_type_id_is_non_experimental()

bool ED_asset_type_id_is_non_experimental ( const ID id)

Definition at line 15 of file asset_type.cc.

References ELEM, GS, id, ID_AC, ID_GR, ID_MA, ID_NT, ID_OB, ID_WO, and ID::name.

Referenced by ED_asset_type_is_supported().

◆ ED_asset_type_is_supported()

bool ED_asset_type_is_supported ( const ID id)

Check if the asset type for id (which doesn't need to be an asset right now) can be an asset, respecting the "Extended Asset Browser" experimental feature flag.

Definition at line 22 of file asset_type.cc.

References BKE_id_can_be_asset(), and ED_asset_type_id_is_non_experimental().

Referenced by asset_operation_get_id_vec_stats_from_context(), and ED_asset_can_mark_single_from_context().

◆ ED_asset_types_supported_as_filter_flags()

int64_t ED_asset_types_supported_as_filter_flags ( void  )

Get the filter flags (subset of FILTER_ID_ALL) representing the asset ID types that may be turned into assets, respecting the "Extended Asset Browser" experimental feature flag.

Note
Does not check for BKE_id_can_be_asset(), so may return filter flags for IDs that can never be assets.

Definition at line 37 of file asset_type.cc.

References ED_ASSET_TYPE_IDS_NON_EXPERIMENTAL_FLAGS, and FILTER_ID_ALL.

Referenced by file_refresh().