Add upgrade script for 3.0 to 3.1

CURA-4451

- Add upgrade script for 3.0. to 3.1
- Upgrade old stack files so they will use "empty_quality" as the
  "Not Supported" quality profile.
- Increase SettingVersion to 4
This commit is contained in:
Lipu Fei 2017-10-30 12:45:25 +01:00
parent fb88dd6326
commit b6dd87081c
280 changed files with 482 additions and 277 deletions

View file

@ -35,7 +35,7 @@ class XmlMaterialProfile(InstanceContainer):
# \return The corresponding setting_version.
def xmlVersionToSettingVersion(self, xml_version: str) -> int:
if xml_version == "1.3":
return 3
return 4
return 0 #Older than 1.3.
def getInheritedFiles(self):