mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Remove Alternate Skin Rotations setting
It's been replaced completely by the Top/Bottom Line Directions setting.
This commit is contained in:
parent
fc0b8185b7
commit
cb9b385a85
3 changed files with 6 additions and 11 deletions
|
@ -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()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue