diff options
author | Ghostkeeper <rubend@tutanota.com> | 2019-10-22 14:46:21 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2019-10-22 14:46:42 +0300 |
commit | cb9b385a851958b3a71450a1d661f905efb09826 (patch) | |
tree | bee39e2ee4b86f6f4795eb27d0e80798dd97ca92 /plugins/VersionUpgrade/VersionUpgrade43to44 | |
parent | fc0b8185b7df0f223a67f24384e3e6bad663c8a1 (diff) |
Remove Alternate Skin Rotations setting
It's been replaced completely by the Top/Bottom Line Directions setting.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade43to44')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py b/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py index 195bc70016..4858c6f9bf 100644 --- a/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py +++ b/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py @@ -2,6 +2,7 @@ import configparser from typing import Tuple, List import io from UM.VersionUpgrade import VersionUpgrade +from UM.Util import parseBool # To parse whether the Alternate Skin Rotations function is activated. _renamed_container_id_map = { "ultimaker2_0.25": "ultimaker2_olsson_0.25", @@ -61,6 +62,11 @@ class VersionUpgrade43to44(VersionUpgrade): if parser["metadata"].get("type", "") == "quality_changes": parser["metadata"]["intent_category"] = "default" + if "values" in parser: + # Alternate skin rotation should be translated to top/bottom line directions. + if "skin_alternate_rotation" in parser["values"] and parseBool(parser["values"]["skin_alternate_rotation"]): + parser["skin_angles"] = "[45, 135, 0, 90]" + result = io.StringIO() parser.write(result) return [filename], [result.getvalue()] |