Blender V5.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
 BMesh Iterators.
namespace  blender::asset_system
namespace  blender::ed
namespace  blender::ed::asset

Functions

AssetTempIDConsumer * blender::ed::asset::temp_id_consumer_create (const asset_system::AssetRepresentation *asset)
void blender::ed::asset::temp_id_consumer_free (AssetTempIDConsumer **consumer)
ID * blender::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.