WIP: Add temporary fix to make materials work with 2.7 version upgrade

CURA-3975

This is a temporary fix to make materials work with 2.7 version upgrade
because of the setting_version change from 1 to 2. This MUST be fixed
after we have decided on how to determine the versions of an
XMLMaterialProfile.
This commit is contained in:
Lipu Fei 2017-07-06 14:17:01 +02:00
parent 5bf080950f
commit b4949a164c
3 changed files with 10 additions and 0 deletions

View file

@ -20,6 +20,8 @@ def getMetaData():
},
"version_upgrade": {
("materials", 1000000): ("materials", 1000001, upgrader.upgradeMaterial),
# FIXME: This needs to be changed once we have decided on how to determine the versions
("materials", 1000001): ("materials", 1000002, upgrader.upgradeMaterial),
},
"sources": {
"materials": {