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:
Lipu Fei 2017-09-04 15:49:54 +02:00
parent fdf5dc049e
commit 51547bf37a
2 changed files with 2 additions and 3 deletions

View file

@ -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):