Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2020-05-18 19:19:57 +0300
committerGhostkeeper <rubend@tutanota.com>2020-05-18 19:19:57 +0300
commit98fed9572517ed1f871f6980579a49a1018af637 (patch)
tree78d49ca6d143524cbc0833179e615e8ff0505b2d /plugins/VersionUpgrade
parent95bb3f603d2bdbdeaf2071960aada8ee64f0b0ab (diff)
Adjust the default values for ironing_inset so that the slice result remains the same
The slicer has been adjusted to give this setting a more logical function: It should be an inset of the outer edge of ironing as it appears in layer view where the lines are made thinner according to their flow. As a result all of the slices with ironing have changed. This adjusts the setting value so that the actual slice output will not change, just the appearance of the setting. Contributes to issue CURA-7318.
Diffstat (limited to 'plugins/VersionUpgrade')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py
index c340fd0c72..9a70963e6b 100644
--- a/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py
+++ b/plugins/VersionUpgrade/VersionUpgrade462to47/VersionUpgrade462to47.py
@@ -58,6 +58,15 @@ class VersionUpgrade462to47(VersionUpgrade):
maximum_deviation = "=(" + maximum_deviation + ") / 2"
parser["values"]["meshfix_maximum_deviation"] = maximum_deviation
+ # Ironing inset is now based on the flow-compensated line width to make the setting have a more logical UX.
+ # Adjust so that the actual print result remains the same.
+ if "ironing_inset" in parser["values"]:
+ ironing_inset = parser["values"]["ironing_inset"]
+ if ironing_inset.startswith("="):
+ ironing_inset = ironing_inset[1:]
+ ironing_inset = "=(" + ironing_inset + ") + skin_line_width * (1.0 - ironing_flow) / 2"
+ parser["values"]["ironing_inset"] = ironing_inset
+
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]