mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Update setting_version to 3 for XMLMaterial
CURA-4270 Technically, this is not right. This is just to postpone a time bomb... The XML material profile needs a setting number instead of getting it derived from the schema version.
This commit is contained in:
parent
fdf5dc049e
commit
51547bf37a
2 changed files with 2 additions and 3 deletions
|
@ -35,7 +35,7 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
# \return The corresponding setting_version.
|
||||
def xmlVersionToSettingVersion(self, xml_version: str) -> int:
|
||||
if xml_version == "1.3":
|
||||
return 2
|
||||
return 3
|
||||
return 0 #Older than 1.3.
|
||||
|
||||
def getInheritedFiles(self):
|
||||
|
|
|
@ -19,8 +19,7 @@ def getMetaData():
|
|||
"mimetype": "application/x-ultimaker-material-profile"
|
||||
},
|
||||
"version_upgrade": {
|
||||
("materials", 1000000): ("materials", 1000002, upgrader.upgradeMaterial),
|
||||
("materials", 1000000): ("materials", 1000002, upgrader.upgradeMaterial),
|
||||
("materials", 1000000): ("materials", 1000003, upgrader.upgradeMaterial),
|
||||
},
|
||||
"sources": {
|
||||
"materials": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue