mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-28 21:32:11 +00:00
Serealize all value fields for Preset class to minimize regression later
This commit is contained in:
@@ -458,15 +458,21 @@ protected:
|
|||||||
friend class PresetBundle;
|
friend class PresetBundle;
|
||||||
friend class cereal::access;
|
friend class cereal::access;
|
||||||
|
|
||||||
// Serializes the fields needed to reconstruct a system preset from a binary cache.
|
// Serializes all value fields of Preset for the binary vendor cache.
|
||||||
// The vendor pointer is NOT serialized — apply() reconstructs it from VendorCache::profile.id.
|
// Raw pointers (vendor, loading_substitutions) are excluded — vendor is reconstructed
|
||||||
|
// by apply_vendor_cache() from the VendorProfile stored alongside the presets.
|
||||||
template<class Archive>
|
template<class Archive>
|
||||||
void serialize(Archive& ar)
|
void serialize(Archive& ar)
|
||||||
{
|
{
|
||||||
ar(type, name, alias, file, version,
|
ar(type, name, alias, file, version,
|
||||||
filament_id, setting_id, description,
|
filament_id, setting_id, description,
|
||||||
renamed_from, is_system, is_visible,
|
renamed_from, is_system, is_visible,
|
||||||
m_from_orca_filament_lib, config);
|
is_default, is_external, is_dirty, is_compatible,
|
||||||
|
is_project_embedded, loaded,
|
||||||
|
m_from_orca_filament_lib, m_excluded_from,
|
||||||
|
bundle_id, user_id, base_id, sync_info,
|
||||||
|
updated_time, key_values, ini_str,
|
||||||
|
config);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user