Implement upgrade for quality changes extruder metadata

The metadata used to be the ID of the extruder. Now it's the position of the extruder stack.

Contributes to issue CURA-5054.
This commit is contained in:
Ghostkeeper 2018-03-09 14:54:08 +01:00
parent e30d15ab66
commit fb814b6519
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
2 changed files with 71 additions and 6 deletions

View file

@ -8,11 +8,11 @@ upgrade = VersionUpgrade32to33.VersionUpgrade32to33()
def getMetaData():
return {
"version_upgrade": {
# From To Upgrade function
("quality", 2000004): ("quality", 3000004, upgrade.upgradeQuality),
# From To Upgrade function
("quality_changes", 2000004): ("quality", 3000004, upgrade.upgradeQualityChanges),
},
"sources": {
"quality": {
"quality_changes": {
"get_version": upgrade.getCfgVersion,
"location": {"./quality"}
}