diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-07-24 17:18:15 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-07-24 17:19:59 +0300 |
commit | 89cd11e62a8b285662284635e3f1fa5ff7ee1737 (patch) | |
tree | 26fa0820511c949ce030cda39ca7e8558654092a /plugins/VersionUpgrade/VersionUpgrade26to27 | |
parent | 74feabacd0db4a44ee9c8bad48edb3b18e902ae7 (diff) |
Upgrade g-code flavour Volumatric to Volumetric
Contributes to issue CURA-3998.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade26to27')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade26to27/VersionUpgrade26to27.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade26to27/VersionUpgrade26to27.py b/plugins/VersionUpgrade/VersionUpgrade26to27/VersionUpgrade26to27.py index e2d7817077..4df64af95b 100644 --- a/plugins/VersionUpgrade/VersionUpgrade26to27/VersionUpgrade26to27.py +++ b/plugins/VersionUpgrade/VersionUpgrade26to27/VersionUpgrade26to27.py @@ -104,6 +104,11 @@ class VersionUpgrade26to27(VersionUpgrade): parser["metadata"] = {} parser["metadata"]["setting_version"] = "2" + #Renamed setting value for g-code flavour. + if "values" in parser and "machine_gcode_flavor" in parser["values"]: + if parser["values"]["machine_gcode_flavor"] == "RepRap (Volumatric)": + parser["values"]["machine_gcode_flavor"] = "RepRap (Volumetric)" + # Re-serialise the file. output = io.StringIO() parser.write(output) |