mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
Use XMLMaterialProfile version tag to determine its version
CURA-2724
This commit is contained in:
parent
b95426bee3
commit
071005541c
3 changed files with 4 additions and 15 deletions
|
@ -21,11 +21,7 @@ class XmlMaterialUpgrader(VersionUpgrade):
|
|||
|
||||
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 2
|
||||
return 0 #Older than 1.3.
|
||||
|
||||
def upgradeMaterial(self, serialised, filename):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue