mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
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:
parent
5bf080950f
commit
b4949a164c
3 changed files with 10 additions and 0 deletions
|
@ -20,6 +20,10 @@ class XmlMaterialUpgrader(VersionUpgrade):
|
|||
return version * 1000000 + setting_version
|
||||
|
||||
def _xmlVersionToSettingVersion(self, xml_version: str) -> int:
|
||||
if xml_version == "1.3":
|
||||
return 2 # FIXME & HACK: This is temporary hack. The setting_version has been increased in CuraApplication,
|
||||
# but we haven't decided on how to determine the versions of an XMLMaterialProfile yet.
|
||||
# This MUST be fixed after the decision has been made.
|
||||
if xml_version == "1.3":
|
||||
return 1
|
||||
return 0 #Older than 1.3.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue