mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Do not save setting_version when serializing an XML material
CURA-4053 setting_version is derived from the "version" tag in the XML material schema.
This commit is contained in:
parent
ecdf0bbe33
commit
3c663d576c
1 changed files with 2 additions and 0 deletions
|
@ -129,6 +129,8 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
builder.start("metadata")
|
||||
|
||||
metadata = copy.deepcopy(self.getMetaData())
|
||||
# setting_version is derived from the "version" tag in the schema, so don't serialize it into a file
|
||||
ignore_metadata_keys = ignore_metadata_keys + ["setting_version"]
|
||||
# remove the keys that we want to ignore in the metadata
|
||||
for key in ignore_metadata_keys:
|
||||
if key in metadata:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue