Blender V5.3
blender::bke::library::LibraryRuntime Struct Reference

#include <BKE_library.hh>

Public Attributes

UniqueName_Map * name_map = nullptr
FileData * filedata = nullptr
bool is_filedata_owner = false
char filepath_abs [1024] = ""
Library * parent = nullptr
Vector< Library * > archived_libraries = {}
ushort tag = 0
int temp_index = 0
short versionfile = 0
short subversionfile = 0
MainColorspace colorspace
Set< ID * > unused_ids_on_undo

Detailed Description

Definition at line 29 of file BKE_library.hh.

Member Data Documentation

◆ archived_libraries

◆ colorspace

MainColorspace blender::bke::library::LibraryRuntime::colorspace

Color-space information.

Definition at line 77 of file BKE_library.hh.

Referenced by blender::library_copy_data(), and blender::read_library_file_data().

◆ filedata

FileData* blender::bke::library::LibraryRuntime::filedata = nullptr

Filedata (i.e. opened blendfile) source of this library data.

Note
: This is not always matching the library's blendfile path. E.g. for archive packed libraries, this will be the filedata of the packing blendfile, not of the reference/source library.

Definition at line 40 of file BKE_library.hh.

Referenced by blender::blo_add_main_for_library(), blender::blo_find_main_for_library_and_idname(), blender::blo_read_file_internal(), blender::change_ID_link_filedata_get(), blender::direct_link_library(), blender::library_filedata_release(), blender::library_link_begin(), blender::library_link_end(), blender::read_libblock_undo_restore_identical(), and blender::read_library_file_data().

◆ filepath_abs

char blender::bke::library::LibraryRuntime::filepath_abs[1024] = ""

Run-time only, absolute file-path (set on read). This is only for convenience, filepath is the real path used on file read but in some cases its useful to access the absolute one.

Use BKE_library_filepath_set() rather than setting filepath directly and it will be kept in sync - campbell

Definition at line 55 of file BKE_library.hh.

Referenced by blender::are_ids_from_different_mains_matching(), blender::BKE_libblock_find_name_and_library_filepath(), blender::BKE_library_filepath_set(), blender::BKE_main_merge(), blender::BKE_packedfile_unpack_all_libraries(), blender::BKE_ptcache_path(), blender::blo_add_main_for_library(), blender::blo_find_main_for_library_and_idname(), blender::BLO_main_validate_libraries(), blender::check_missing_files_foreach_path_cb(), blender::ed::object::collection_importer_import_exec(), blender::direct_link_library(), blender::expand_doit_library(), blender::fix_relpaths_library(), blender::image_abs_path(), blender::image_open_exec(), blender::lib_id_library_local_paths(), blender::ed::outliner::lib_relocate(), blender::library_copy_data(), blender::library_link_end(), blender::library_parent_filepath(), blender::main_merge_add_id_to_move(), blender::ed::outliner::outliner_liboverride_property_remove_do(), blender::read_libblock_undo_restore_identical(), blender::read_library_file_data(), blender::read_library_linked_id(), blender::read_library_linked_ids(), blender::rebuild_hierarchy_best_parent_find(), blender::reuse_bmain_data_remapper_ensure(), blender::ed::space_node::scene_lib_filepath(), blender::setup_app_data(), blender::bke::tests::TEST_F(), blender::undosys_id_ref_store(), blender::wm_file_write_check_with_report_on_failure(), blender::wm_id_linked_relocate_exec(), blender::WM_lib_reload(), blender::wm_lib_relocate_exec_do(), and blender::wm_lib_relocate_invoke().

◆ is_filedata_owner

bool blender::bke::library::LibraryRuntime::is_filedata_owner = false

Whether this library is owning its filedata pointer (and therefore should take care of releasing it as part of the readfile process).

Definition at line 45 of file BKE_library.hh.

Referenced by blender::blo_add_main_for_library(), blender::blo_find_main_for_library_and_idname(), blender::direct_link_library(), blender::library_filedata_release(), blender::library_link_begin(), and blender::read_library_file_data().

◆ name_map

UniqueName_Map* blender::bke::library::LibraryRuntime::name_map = nullptr

◆ parent

◆ subversionfile

short blender::bke::library::LibraryRuntime::subversionfile = 0

◆ tag

◆ temp_index

int blender::bke::library::LibraryRuntime::temp_index = 0

Temp data needed by read/write code, and lib-override recursive re-synchronized.

Definition at line 70 of file BKE_library.hh.

Referenced by blender::BKE_library_main_rebuild_hierarchy(), blender::lib_override_resync_tagging_finalize_recurse(), blender::lib_override_sort_libraries_func(), and blender::rebuild_hierarchy_best_parent_find().

◆ unused_ids_on_undo

Set<ID *> blender::bke::library::LibraryRuntime::unused_ids_on_undo

Temporary data used when reading a memfile undo step, to detect re-used regular linked IDs that are no more needed. See #read_undo_move_libmain_data, #read_libblock_undo_restore_linked and #read_undo_libraries_cleanup_unused_ids.

Definition at line 84 of file BKE_library.hh.

Referenced by blender::read_libblock_undo_restore_linked(), and blender::read_undo_move_libmain_data().

◆ versionfile

short blender::bke::library::LibraryRuntime::versionfile = 0

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