diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2017-07-06 15:17:01 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2017-07-06 15:19:30 +0300 |
commit | b4949a164c887ca09bd4d8e6ed34f124ec0430bd (patch) | |
tree | bc160fca88c66b3ff6fb1cccfd218b8f0f832474 /plugins/XmlMaterialProfile/__init__.py | |
parent | 5bf080950ff9cb5f5f51dbac13df07ef91343545 (diff) |
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.
Diffstat (limited to 'plugins/XmlMaterialProfile/__init__.py')
-rw-r--r-- | plugins/XmlMaterialProfile/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/XmlMaterialProfile/__init__.py b/plugins/XmlMaterialProfile/__init__.py index 63ec979fbd..3effe702be 100644 --- a/plugins/XmlMaterialProfile/__init__.py +++ b/plugins/XmlMaterialProfile/__init__.py @@ -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": { |