Remove Alternate Skin Rotations setting

It's been replaced completely by the Top/Bottom Line Directions setting.
This commit is contained in:
Ghostkeeper 2019-10-22 13:46:21 +02:00
parent fc0b8185b7
commit cb9b385a85
No known key found for this signature in database
GPG key ID: 59A4C0959592C05C
3 changed files with 6 additions and 11 deletions

View file

@ -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()]

View file

@ -6441,16 +6441,6 @@
"settable_per_mesh": false,
"settable_per_extruder": true
},
"skin_alternate_rotation":
{
"label": "Alternate Skin Rotation",
"description": "Alternate the direction in which the top/bottom layers are printed. Normally they are printed diagonally only. This setting adds the X-only and Y-only directions.",
"type": "bool",
"default_value": false,
"enabled": "(top_layers > 0 or bottom_layers > 0) and top_bottom_pattern != 'concentric'",
"limit_to_extruder": "top_bottom_extruder_nr",
"settable_per_mesh": true
},
"cross_infill_pocket_size":
{
"label": "Cross 3D Pocket Size",

View file

@ -372,7 +372,6 @@ coasting_enable
coasting_volume
coasting_min_volume
coasting_speed
skin_alternate_rotation
cross_infill_pocket_size
spaghetti_infill_enabled
spaghetti_infill_stepped