Blender V5.0
Library Struct Reference

#include <DNA_ID.h>

Public Attributes

ID id
char filepath [1024]
uint16_t flag
char _pad [6]
struct Libraryarchive_parent_library
struct PackedFilepackedfile
LibraryRuntimeHandleruntime
void * _pad2

Detailed Description

For each library file used, a Library struct is added to Main.

Definition at line 544 of file DNA_ID.h.

Member Data Documentation

◆ _pad

char Library::_pad[6]

Definition at line 556 of file DNA_ID.h.

◆ _pad2

void* Library::_pad2

Definition at line 581 of file DNA_ID.h.

◆ archive_parent_library

struct Library* Library::archive_parent_library

◆ filepath

◆ flag

◆ id

◆ packedfile

struct PackedFile* Library::packedfile

Packed blendfile of the library, nullptr if not packed.

Note
Individual IDs may be packed even if the entire library is not packed.

archive_parent_library and packedfile should never be both non-null in a same Library ID.

Definition at line 572 of file DNA_ID.h.

Referenced by BKE_packedfile_id_check(), library_copy_data(), read_library_file_data(), and write_libraries().

◆ runtime

LibraryRuntimeHandle* Library::runtime

Runtime only data, never written in blendfile.

Typically allocated when creating a new Library or reading it from a blendfile.

Definition at line 579 of file DNA_ID.h.

Referenced by add_archive_library(), are_ids_from_different_mains_matching(), blender::bke::asset_link_id(), BKE_libblock_alloc_in_lib(), BKE_libblock_find_name_and_library_filepath(), BKE_library_main_rebuild_hierarchy(), BKE_main_merge(), blendfile_library_relocate_id_remap_finalize(), blo_add_main_for_library(), blo_find_main_for_library_and_idname(), blo_join_main(), BLO_main_validate_libraries(), blo_read_file_internal(), change_ID_link_filedata_get(), check_missing_files_foreach_path_cb(), blender::ed::space_node::NodeClipboard::copy_add_node(), direct_link_library(), blender::bke::library::ensure_archive_library(), expand_doit_library(), blender::ed::outliner::TreeElementIDLibrary::get_warning(), image_abs_path(), image_file_browse_exec(), image_file_browse_invoke(), image_open_exec(), IMB_colormanagement_working_space_convert(), lib_override_library_main_resync_on_library_indirect_level(), lib_override_resync_tagging_finalize_recurse(), lib_override_sort_libraries_func(), library_copy_data(), library_link_begin(), library_link_end(), main_merge_add_id_to_move(), read_id_in_lib(), read_library_file_data(), read_library_linked_id(), read_library_linked_ids(), read_undo_move_libmain_data(), rebuild_hierarchy_best_parent_find(), reuse_bmain_data_dependencies_new_library_get(), reuse_editable_asset_bmain_data_for_blendfile(), rna_property_override_check_resync(), setup_app_data(), blender::bke::tests::TEST_F(), undosys_id_ref_store(), wm_id_linked_relocate_exec(), and write_libraries().


The documentation for this struct was generated from the following file: