Skip to content

Commit

Permalink
Merge pull request #19584 from Ultimaker/Fix5.8MaterialExport
Browse files Browse the repository at this point in the history
[CURA-12119] Fix Cura 5.8 Material Export
  • Loading branch information
HellAholic authored Aug 28, 2024
2 parents f8aa923 + a18da5c commit c80c964
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/XmlMaterialProfile/XmlMaterialProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,9 +1084,8 @@ def _addSettingElement(self, builder, instance):
# Skip material properties (eg diameter) or metadata (eg GUID)
return

truth_map = { True: "yes", False: "no" }
if tag_name != "cura:setting" and instance.value in truth_map:
data = truth_map[instance.value]
if tag_name != "cura:setting" and isinstance(instance.value, bool):
data = "yes" if instance.value else "no"
else:
data = str(instance.value)

Expand Down

0 comments on commit c80c964

Please sign in to comment.