|
@@ -1,4 +1,4 @@
|
|
|
-# Copyright (c) 2016 Ultimaker B.V.
|
|
|
+# Copyright (c) 2017 Ultimaker B.V.
|
|
|
# Cura is released under the terms of the AGPLv3 or higher.
|
|
|
|
|
|
import configparser #To get version numbers from config files.
|
|
@@ -250,7 +250,7 @@ class VersionUpgrade21to22(VersionUpgrade):
|
|
|
parser = configparser.ConfigParser(interpolation = None)
|
|
|
parser.read_string(serialised)
|
|
|
format_version = int(parser.get("general", "version")) #Explicitly give an exception when this fails. That means that the file format is not recognised.
|
|
|
- setting_version = int(parser.get("general", "setting_version", fallback = 0))
|
|
|
+ setting_version = int(parser.get("metadata", "setting_version", fallback = 0))
|
|
|
return format_version * 1000000 + setting_version
|
|
|
|
|
|
## Gets the fallback quality to use for a specific machine-variant-material
|