Blender V5.3
blender::ReuseOldBMainData Struct Reference

Public Attributes

Main * new_bmain
Main * old_bmain
BlendFileReadWMSetupData * wm_setup_data
id::IDRemapper * remapper
bool is_libraries_remapped
IDNameLib_Map * id_map

Detailed Description

Helper struct to manage IDs that are re-used across blend-file loading (i.e. moved from the old Main the new one).

NOTE: this is only used when actually loading a real .blend file, loading of memfile undo steps does not need it.

Definition at line 236 of file blendfile.cc.

Member Data Documentation

◆ id_map

IDNameLib_Map* blender::ReuseOldBMainData::id_map

Used to find matching IDs by name/lib in new main, to remap ID usages of data ported over from old main.

Definition at line 259 of file blendfile.cc.

Referenced by blender::setup_app_data(), blender::swap_old_bmain_data_dependencies_process(), and blender::swap_old_bmain_data_for_blendfile_dependencies_process_cb().

◆ is_libraries_remapped

bool blender::ReuseOldBMainData::is_libraries_remapped

Definition at line 253 of file blendfile.cc.

Referenced by blender::reuse_bmain_data_remapper_ensure().

◆ new_bmain

◆ old_bmain

◆ remapper

id::IDRemapper* blender::ReuseOldBMainData::remapper

Storage for all remapping rules (old_id -> new_id) required by the preservation of old IDs into the new Main.

Definition at line 252 of file blendfile.cc.

Referenced by blender::reuse_bmain_data_remapper_ensure(), and blender::setup_app_data().

◆ wm_setup_data

BlendFileReadWMSetupData* blender::ReuseOldBMainData::wm_setup_data

Data generated and used by calling WM code to handle keeping WM and UI IDs as best as possible across file reading.

Note
May be null in undo (memfile) case.

Definition at line 246 of file blendfile.cc.

Referenced by blender::setup_app_data(), and blender::swap_wm_data_for_blendfile().


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