diff options
author | ChrisTerBeke <c.terbeke@ultimaker.com> | 2019-11-07 12:31:37 +0300 |
---|---|---|
committer | ChrisTerBeke <c.terbeke@ultimaker.com> | 2019-11-07 12:31:37 +0300 |
commit | 7dc38cd55d912487280810a6008ada6c8dc2e86a (patch) | |
tree | f47db6a27a8bc7eb5af7181a72e36746fb6bf4cd /plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py | |
parent | b1316b8a053906949a444ca8c7c685324ef711fa (diff) | |
parent | da92c36afbd4af1e56b421adbaf562acd0e3ec31 (diff) |
Merge branch '4.4' into CS-476_improve_packages_api_speed
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py b/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py index e8eefb1bb0..40927fe3a0 100644 --- a/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py +++ b/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py @@ -66,6 +66,13 @@ class VersionUpgrade43to44(VersionUpgrade): # 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["values"]["skin_angles"] = "[45, 135, 0, 90]" + # Unit of adaptive layers topography size changed. + if "adaptive_layer_height_threshold" in parser["values"]: + val = parser["values"]["adaptive_layer_height_threshold"] + if val.startswith("="): + val = val[1:] + val = "=({val}) / 1000".format(val = val) # Convert microns to millimetres. Works even if the profile contained a formula. + parser["values"]["adaptive_layer_height_threshold"] = val result = io.StringIO() parser.write(result) |