71struct BlendfileLinkAppendContext;
141 std::list<BlendfileLinkAppendContextItem>
items;
242 BlendHandle *blo_handle);
256#define BLENDFILE_LINK_APPEND_INVALID -1
272 BlendfileLinkAppendContext *lapp_context,
282 BlendfileLinkAppendContext *lapp_context,
283 BlendfileLinkAppendContextItem *item,
291 BlendfileLinkAppendContextItem *item);
293 BlendfileLinkAppendContextItem *item);
299 BlendfileLinkAppendContextItem *item,
302 BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item);
304 BlendfileLinkAppendContextItem *item);
327 BlendfileLinkAppendContext *lapp_context,
333 FunctionRef<
bool(BlendfileLinkAppendContext *lapp_context,
334 BlendfileLinkAppendContextItem *item)> callback_function,
347void BKE_blendfile_link(BlendfileLinkAppendContext *lapp_context, ReportList *reports);
370 ReportList *reports);
386 ViewLayer *view_layer,
387 Collection *target_collection,
388 ReportList *reports);
434 ReportList *reports);
external readfile function prototypes.
unsigned long long int uint64_t
void BKE_blendfile_link_append_instantiate_loose(BlendfileLinkAppendContext *lapp_context, ReportList *reports)
BlendfileLinkAppendContext * BKE_blendfile_link_append_context_new(LibraryLink_Params *params)
void BKE_blendfile_link_append_context_free(BlendfileLinkAppendContext *lapp_context)
BlendfileLinkAppendContextItem * BKE_blendfile_link_append_context_item_add(BlendfileLinkAppendContext *lapp_context, const char *idname, short idcode, void *userdata)
void BKE_blendfile_link_append_context_item_library_index_enable(BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item, int library_index)
void BKE_blendfile_id_relocate(BlendfileLinkAppendContext &lapp_context, ReportList *reports)
void BKE_blendfile_link_append_context_embedded_blendfile_clear(BlendfileLinkAppendContext *lapp_context)
ID * BKE_blendfile_link_append_context_item_newid_get(BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item)
ID * BKE_blendfile_link_append_context_item_liboverrideid_get(BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item)
short BKE_blendfile_link_append_context_item_idcode_get(BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item)
void * BKE_blendfile_link_append_context_item_userdata_get(BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item)
void BKE_blendfile_link_append_context_item_newid_set(BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item, ID *new_id)
void BKE_blendfile_link_append_instantiate_loose_from_bmain(Main *bmain, Scene *scene, ViewLayer *view_layer, Collection *target_collection, ReportList *reports)
void BKE_blendfile_link_append_context_embedded_blendfile_set(BlendfileLinkAppendContext *lapp_context, const void *blendfile_mem, int blendfile_memsize)
bool BKE_blendfile_link_append_context_is_empty(BlendfileLinkAppendContext *lapp_context)
void BKE_blendfile_link_append_context_finalize(BlendfileLinkAppendContext *lapp_context)
@ BKE_LIBLINK_OVERRIDE_USE_EXISTING_LIBOVERRIDES
@ BKE_LIBLINK_OVERRIDE_INIT
@ BKE_LIBLINK_OVERRIDE_CREATE_RUNTIME
void BKE_blendfile_link_append_context_flag_set(BlendfileLinkAppendContext *lapp_context, int flag, bool do_set)
void BKE_blendfile_append(BlendfileLinkAppendContext *lapp_context, ReportList *reports)
@ LINK_APPEND_ACT_MAKE_LOCAL
@ LINK_APPEND_ACT_COPY_LOCAL
@ LINK_APPEND_ACT_KEEP_LINKED
@ LINK_APPEND_ACT_REUSE_LOCAL
void BKE_blendfile_link_pack(BlendfileLinkAppendContext *lapp_context, ReportList *reports)
void BKE_blendfile_library_relocate(BlendfileLinkAppendContext *lapp_context, ReportList *reports, Library *library, bool do_reload)
void BKE_blendfile_link_append_context_library_add(BlendfileLinkAppendContext *lapp_context, const char *libname, BlendHandle *blo_handle)
@ LINK_APPEND_TAG_LIBOVERRIDE_DEPENDENCY_ONLY
@ LINK_APPEND_TAG_INDIRECT
@ LINK_APPEND_TAG_LIBOVERRIDE_DEPENDENCY
eBlendfileLinkAppendForeachItemFlag
@ BKE_BLENDFILE_LINK_APPEND_FOREACH_ITEM_FLAG_DO_INDIRECT
@ BKE_BLENDFILE_LINK_APPEND_FOREACH_ITEM_FLAG_DO_DIRECT
void BKE_blendfile_link(BlendfileLinkAppendContext *lapp_context, ReportList *reports)
void BKE_blendfile_link_append_context_item_foreach(BlendfileLinkAppendContext *lapp_context, FunctionRef< bool(BlendfileLinkAppendContext *lapp_context, BlendfileLinkAppendContextItem *item)> callback_function, eBlendfileLinkAppendForeachItemFlag flag)
int BKE_blendfile_link_append_context_item_idtypes_from_library_add(BlendfileLinkAppendContext *lapp_context, ReportList *reports, uint64_t id_types_filter, int library_index)
void BKE_blendfile_link_append_context_init_done(BlendfileLinkAppendContext *lapp_context)
void BKE_blendfile_override(BlendfileLinkAppendContext *lapp_context, const eBKELibLinkOverride flags, ReportList *reports)
BlendfileLinkAppendContext * lapp_context
BlendFileReadReport bf_reports
ProcessStage process_stage
const void * blendfile_mem
Collection * target_collection
Vector< BlendfileLinkAppendContextLibrary > libraries
LibraryLink_Params * params
Map< ID *, BlendfileLinkAppendContextItem * > new_id_to_item
std::list< BlendfileLinkAppendContextItem > items
std::list< BlendfileLinkAppendContextItem >::iterator items_iterator_t
MainLibraryWeakReferenceMap * library_weak_reference_mapping