Blender V4.3
ED_asset_temp_id_consumer.hh File Reference
#include "DNA_ID_enums.h"

Go to the source code of this file.

Namespaces

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

Functions

AssetTempIDConsumer * blender::ed::asset::temp_id_consumer_create (const blender::asset_system::AssetRepresentation *asset)
 
void blender::ed::asset::temp_id_consumer_free (AssetTempIDConsumer **consumer)
 
IDblender::ed::asset::temp_id_consumer_ensure_local_id (AssetTempIDConsumer *consumer, ID_Type id_type, Main *bmain, 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.hh.