|
Blender V5.3
|
#include <BKE_blendfile_link_append.hh>
Public Types | |
| enum class | ProcessStage { Init = 0 , Linking , Appending , Instantiating , Done } |
| using | items_iterator_t = std::list<BlendfileLinkAppendContextItem>::iterator |
Public Attributes | |
| Vector< BlendfileLinkAppendContextLibrary > | libraries |
| std::list< BlendfileLinkAppendContextItem > | items |
| LibraryLink_Params * | params = nullptr |
| Collection * | target_collection = nullptr |
| ProcessStage | process_stage |
| Map< ID *, BlendfileLinkAppendContextItem * > | new_id_to_item |
| MainLibraryWeakReferenceMap * | library_weak_reference_mapping = nullptr |
| const void * | blendfile_mem = nullptr |
| size_t | blendfile_memsize = 0 |
General container for all relevant data for a library/linked-data related operation (linking, appending, library relocating, etc.).
Definition at line 134 of file BKE_blendfile_link_append.hh.
| using blender::BlendfileLinkAppendContext::items_iterator_t = std::list<BlendfileLinkAppendContextItem>::iterator |
Definition at line 142 of file BKE_blendfile_link_append.hh.
|
strong |
What is the current stage of the link/append process. Used mainly by the RNA wrappers for the pre/post handlers currently.
Definition at line 156 of file BKE_blendfile_link_append.hh.
| const void* blender::BlendfileLinkAppendContext::blendfile_mem = nullptr |
Embedded blendfile and its size, if needed.
Definition at line 192 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_link_append_context_embedded_blendfile_clear(), blender::BKE_blendfile_link_append_context_embedded_blendfile_set(), and blender::link_append_context_library_blohandle_ensure().
| size_t blender::BlendfileLinkAppendContext::blendfile_memsize = 0 |
| std::list<BlendfileLinkAppendContextItem> blender::BlendfileLinkAppendContext::items |
List of all ID to try to link from libraries. This is a linked list because iterators must not be invalidated when adding more items.
Definition at line 141 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_append(), blender::BKE_blendfile_id_relocate(), blender::BKE_blendfile_library_relocate(), blender::BKE_blendfile_link(), blender::BKE_blendfile_link_append_context_is_empty(), blender::BKE_blendfile_link_append_context_item_add(), blender::BKE_blendfile_link_append_context_item_foreach(), blender::BKE_blendfile_link_append_context_library_add(), blender::BKE_blendfile_link_append_instantiate_loose(), blender::BKE_blendfile_link_pack(), blender::BKE_blendfile_override(), blender::blendfile_append_define_actions(), blender::blendfile_library_relocate_id_remap(), blender::blendfile_relocate_postprocess_cleanup(), blender::is_collection_instantiated_by_other_link_append_data(), blender::loose_data_gather_instanciated_objects(), blender::loose_data_instantiate_collection_process(), blender::loose_data_instantiate_obdata_preprocess(), blender::loose_data_instantiate_obdata_process(), blender::loose_data_instantiate_object_process(), blender::loose_data_instantiate_object_rigidbody_postprocess(), and blender::new_id_to_item_mapping_create().
| Vector<BlendfileLinkAppendContextLibrary> blender::BlendfileLinkAppendContext::libraries |
List of library paths to search IDs in.
Definition at line 136 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_link(), blender::BKE_blendfile_link_append_context_free(), blender::BKE_blendfile_link_append_context_item_add(), blender::BKE_blendfile_link_append_context_item_idtypes_from_library_add(), and blender::BKE_blendfile_link_append_context_library_add().
| MainLibraryWeakReferenceMap* blender::BlendfileLinkAppendContext::library_weak_reference_mapping = nullptr |
Runtime info used by append code to manage re-use of already appended matching IDs.
Definition at line 189 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_append(), blender::BKE_blendfile_link_append_context_free(), and blender::blendfile_append_define_actions().
| Map<ID *, BlendfileLinkAppendContextItem *> blender::BlendfileLinkAppendContext::new_id_to_item |
Allows to easily find an existing items from an ID pointer.
Definition at line 186 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_link_append_context_finalize(), blender::BKE_blendfile_link_append_context_item_newid_set(), blender::BKE_blendfile_link_pack(), and blender::new_id_to_item_mapping_add().
| LibraryLink_Params* blender::BlendfileLinkAppendContext::params = nullptr |
Linking/appending parameters. Including bmain, scene, viewlayer and view3d.
Definition at line 144 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_append(), blender::BKE_blendfile_id_relocate(), blender::BKE_blendfile_library_relocate(), blender::BKE_blendfile_link(), blender::BKE_blendfile_link_append_context_finalize(), blender::BKE_blendfile_link_append_context_flag_set(), blender::BKE_blendfile_link_append_context_init_done(), blender::BKE_blendfile_link_append_context_item_idtypes_from_library_add(), blender::BKE_blendfile_link_append_context_new(), blender::BKE_blendfile_link_append_instantiate_loose(), blender::BKE_blendfile_link_append_instantiate_loose_from_bmain(), blender::BKE_blendfile_link_pack(), blender::BKE_blendfile_override(), blender::blendfile_append_define_actions(), blender::blendfile_library_relocate_id_remap(), blender::blendfile_relocate_postprocess_cleanup(), blender::blendfile_relocate_postprocess_liboverrides(), blender::loose_data_gather_instanciated_objects(), blender::loose_data_gather_instanciated_objects_for_viewlayer(), blender::loose_data_instantiate(), blender::loose_data_instantiate_collection_process(), blender::loose_data_instantiate_ensure_target_collection(), blender::loose_data_instantiate_obdata_process(), blender::loose_data_instantiate_object_process(), blender::loose_data_instantiate_object_rigidbody_postprocess(), and blender::loose_data_instantiate_process_check().
| ProcessStage blender::BlendfileLinkAppendContext::process_stage |
Definition at line 183 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_append(), blender::BKE_blendfile_link(), blender::BKE_blendfile_link_append_context_finalize(), blender::BKE_blendfile_link_append_context_init_done(), blender::BKE_blendfile_link_append_context_item_idtypes_from_library_add(), blender::BKE_blendfile_link_append_context_item_liboverrideid_get(), blender::BKE_blendfile_link_append_context_item_library_index_enable(), blender::BKE_blendfile_link_append_context_item_newid_get(), blender::BKE_blendfile_link_append_context_item_newid_set(), blender::BKE_blendfile_link_append_context_library_add(), blender::BKE_blendfile_link_append_context_new(), blender::BKE_blendfile_link_append_instantiate_loose(), and blender::BKE_blendfile_link_append_instantiate_loose_from_bmain().
| Collection* blender::BlendfileLinkAppendContext::target_collection = nullptr |
Target collection to link/append into. This is only used for instantiating collections, and is not mandatory for linking/appending objects or other data-blocks.
Definition at line 150 of file BKE_blendfile_link_append.hh.
Referenced by blender::BKE_blendfile_link_append_instantiate_loose(), and blender::BKE_blendfile_link_append_instantiate_loose_from_bmain().