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.
This commit is contained in:
Ghostkeeper 2022-06-30 09:45:45 +02:00
parent e0c319ed46
commit 795814d50b
No known key found for this signature in database
GPG key ID: 68F39EA88EEED5FF
2 changed files with 25 additions and 19 deletions

View file

@ -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"
}