diff options
author | Ghostkeeper <rubend@tutanota.com> | 2022-06-30 10:45:45 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2022-06-30 10:45:45 +0300 |
commit | 795814d50b15769e1149acf520d71acd54af30fa (patch) | |
tree | f8ff16e7e8ce442a043e48108284343f1ca9ad09 /plugins/XmlMaterialProfile | |
parent | e0c319ed46f5e7847843bb530116c24c3f3d3704 (diff) |
Store unmapped settings in a separate set
We don't want to create actual settings for all of these. Just store them in the profile metadata and restore them.
Serialising and deserialising these is a bit more work than what I could do now in 5 minutes so we'll have to do that a bit later, but at least for now we have the complete list.
Contributes to issue CURA-9432.
Diffstat (limited to 'plugins/XmlMaterialProfile')
-rw-r--r-- | plugins/XmlMaterialProfile/XmlMaterialProfile.py | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 20efccc236..9dba3fb465 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -1139,14 +1139,36 @@ class XmlMaterialProfile(InstanceContainer): "maximum park duration": "material_maximum_park_duration", "no load move factor": "material_no_load_move_factor", "break speed": "material_break_speed", - "break temperature": "material_break_temperature", - "tainted print core max temperature": "max_degradation_temperature", - "recommend cleaning after n prints": "recommended_cleaning_after_n_prints" + "break temperature": "material_break_temperature" } # type: Dict[str, str] __unmapped_settings = [ "hardware compatible", "hardware recommended" ] + __keep_serialized_settings = { # Settings irrelevant to Cura, but that could be present in the files so we must store them and keep them serialized. + "relative extrusion", + "flow sensor detection margin", + "different material purge volume", + "same material purge volume", + "end of print purge volume", + "end of filament purge volume", + "purge anti ooze retract position", + "purge drop retract position", + "purge retract speed", + "purge unretract speed", + "purge anti ooze dwell time", + "purge drop dwell time", + "dwell time before break preparation move", + "pressure release dwell time", + "tainted print core max temperature", + "recommended cleaning after n prints", + + "maximum heated bed temperature", + "material bed adhesion temperature", + "maximum heated chamber temperature", + "shrinkage percentage", + "move to die distance", + } __material_properties_setting_map = { "diameter": "material_diameter" } |