diff options
author | Ghostkeeper <rubend@tutanota.com> | 2019-12-23 18:07:05 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2019-12-23 18:22:17 +0300 |
commit | a3c5435a1de9a4274b493bb8a811219b389ca596 (patch) | |
tree | 4bab5c26e831276f5e16e5b9fd15e4454ab5acb1 | |
parent | 50f64ca696caa0b855f64d943b20c4ada18a2a30 (diff) |
Remove support_tree_wall_thickness
This setting will not be automatically translated to support_wall_thickness if it's overwritten, because that would require knowing the line width and we don't know that here. So it's hard to do.
Contributes to issue CURA-7077.
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py | 8 | ||||
-rw-r--r-- | resources/definitions/fdmprinter.def.json | 15 |
2 files changed, 8 insertions, 15 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py b/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py index 35861c9486..3ae25e05ae 100644 --- a/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py +++ b/plugins/VersionUpgrade/VersionUpgrade44to45/VersionUpgrade44to45.py @@ -11,6 +11,10 @@ _merged_settings = { "support_wall_count": "support_tree_wall_count" } +_removed_settings = { + "support_tree_wall_thickness" +} + class VersionUpgrade44to45(VersionUpgrade): def getCfgVersion(self, serialised: str) -> int: parser = configparser.ConfigParser(interpolation = None) @@ -55,6 +59,10 @@ class VersionUpgrade44to45(VersionUpgrade): parser["values"][preferred] = parser["values"][removed] del parser["values"][removed] + for removed in _removed_settings: + if removed in parser["values"]: + del parser["values"][removed] + result = io.StringIO() parser.write(result) return [filename], [result.getvalue()] diff --git a/resources/definitions/fdmprinter.def.json b/resources/definitions/fdmprinter.def.json index 117ee0e5ad..693ae142f6 100644 --- a/resources/definitions/fdmprinter.def.json +++ b/resources/definitions/fdmprinter.def.json @@ -6185,21 +6185,6 @@ "settable_per_mesh": false, "settable_per_extruder": true }, - "support_tree_wall_thickness": - { - "label": "Tree Support Wall Thickness", - "description": "The thickness of the walls of the branches of tree support. Thicker walls take longer to print but don't fall over as easily.", - "unit": "mm", - "type": "float", - "minimum_value": "0", - "minimum_value_warning": "wall_line_width", - "default_value": 0.8, - "value": "support_line_width", - "limit_to_extruder": "support_infill_extruder_nr", - "enabled": "support_tree_enable", - "settable_per_mesh": false, - "settable_per_extruder": true - }, "slicing_tolerance": { "label": "Slicing Tolerance", |