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>2016-09-16 17:50:27 +0300
committerGhostkeeper <rubend@tutanota.com>2016-09-16 17:50:27 +0300
commitd391639b48e3e3adc3af6c935e7595490ed4025a (patch)
tree860d78469c8183bc26fd409c9934bf70b552de83 /plugins/VersionUpgrade/VersionUpgrade21to22
parent628aa70e12321616f1d951725c8c9264a4ea5595 (diff)
Translate Fan Speed Full At Layer to one-based counting
All layer counts should increment by 1. Contributes to issue CURA-2314.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade21to22')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py
index 2b5fc1f7ee..7a9b102758 100644
--- a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py
+++ b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py
@@ -398,6 +398,9 @@ class VersionUpgrade21to22(VersionUpgrade):
if key == "retraction_combing": #Combing was made into an enum instead of a boolean.
new_settings[key] = "off" if (value == "False") else "all"
continue
+ if key == "cool_fan_full_layer": #Layer counting was made one-indexed.
+ new_settings[key] = str(int(value) + 1)
+ continue
if key in _setting_name_translations:
new_settings[_setting_name_translations[key]] = value
continue