Blender V4.3
ReuseOldBMainData Struct Reference

Public Attributes

Mainnew_bmain
 
Mainold_bmain
 
BlendFileReadWMSetupDatawm_setup_data
 
id::IDRemapper * remapper
 
bool is_libraries_remapped
 
IDNameLib_Mapid_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 231 of file blendfile.cc.

Member Data Documentation

◆ id_map

IDNameLib_Map* 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 248 of file blendfile.cc.

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

◆ is_libraries_remapped

bool ReuseOldBMainData::is_libraries_remapped

Definition at line 244 of file blendfile.cc.

Referenced by reuse_bmain_data_remapper_ensure().

◆ new_bmain

◆ old_bmain

◆ remapper

id::IDRemapper* 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 243 of file blendfile.cc.

Referenced by reuse_bmain_data_remapper_ensure(), and setup_app_data().

◆ wm_setup_data

BlendFileReadWMSetupData* 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 239 of file blendfile.cc.

Referenced by setup_app_data(), and swap_wm_data_for_blendfile().


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