mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Set version in <fdmmaterial> when saving XML material files
CURA-3884
This commit is contained in:
parent
9bda7dbaae
commit
8ede981a2c
1 changed files with 4 additions and 1 deletions
|
@ -19,6 +19,7 @@ from cura.Settings.CuraContainerRegistry import CuraContainerRegistry
|
||||||
|
|
||||||
## Handles serializing and deserializing material containers from an XML file
|
## Handles serializing and deserializing material containers from an XML file
|
||||||
class XmlMaterialProfile(InstanceContainer):
|
class XmlMaterialProfile(InstanceContainer):
|
||||||
|
CurrentFdmMaterialVersion = "1.3"
|
||||||
Version = 1
|
Version = 1
|
||||||
|
|
||||||
def __init__(self, container_id, *args, **kwargs):
|
def __init__(self, container_id, *args, **kwargs):
|
||||||
|
@ -124,7 +125,9 @@ class XmlMaterialProfile(InstanceContainer):
|
||||||
|
|
||||||
builder = ET.TreeBuilder()
|
builder = ET.TreeBuilder()
|
||||||
|
|
||||||
root = builder.start("fdmmaterial", { "xmlns": "http://www.ultimaker.com/material"})
|
root = builder.start("fdmmaterial",
|
||||||
|
{"xmlns": "http://www.ultimaker.com/material",
|
||||||
|
"version": self.CurrentFdmMaterialVersion})
|
||||||
|
|
||||||
## Begin Metadata Block
|
## Begin Metadata Block
|
||||||
builder.start("metadata")
|
builder.start("metadata")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue