Blender  V3.3
Typedefs | Functions
ED_asset_temp_id_consumer.h File Reference
#include "DNA_ID_enums.h"

Go to the source code of this file.

Typedefs

typedef struct AssetTempIDConsumer AssetTempIDConsumer
 

Functions

AssetTempIDConsumerED_asset_temp_id_consumer_create (const struct AssetHandle *handle)
 
void ED_asset_temp_id_consumer_free (AssetTempIDConsumer **consumer)
 
struct IDED_asset_temp_id_consumer_ensure_local_id (AssetTempIDConsumer *consumer, const struct bContext *C, const struct AssetLibraryReference *asset_library_ref, ID_Type id_type, struct Main *bmain, struct ReportList *reports)
 

Detailed Description

API to abstract away details for temporary loading of an ID from an asset. If the ID is stored in the current file (or more precisely, in the Main given when requesting an ID) no loading is performed and the ID is returned. Otherwise it's imported for temporary access using the BLO_library_temp API.

Definition in file ED_asset_temp_id_consumer.h.

Typedef Documentation

◆ AssetTempIDConsumer

Definition at line 1 of file ED_asset_temp_id_consumer.h.

Function Documentation

◆ ED_asset_temp_id_consumer_create()

AssetTempIDConsumer* ED_asset_temp_id_consumer_create ( const struct AssetHandle handle)

◆ ED_asset_temp_id_consumer_ensure_local_id()

struct ID* ED_asset_temp_id_consumer_ensure_local_id ( AssetTempIDConsumer consumer,
const struct bContext C,
const struct AssetLibraryReference asset_library_ref,
ID_Type  id_type,
struct Main bmain,
struct ReportList reports 
)

◆ ED_asset_temp_id_consumer_free()

void ED_asset_temp_id_consumer_free ( AssetTempIDConsumer **  consumer)

Definition at line 80 of file asset_temp_id_consumer.cc.

Referenced by poselib_tempload_exit().