mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-24 23:29:00 +08:00
Merge pull request #19584 from Ultimaker/Fix5.8MaterialExport
[CURA-12119] Fix Cura 5.8 Material Export
This commit is contained in:
commit
c80c964dcf
@ -1084,9 +1084,8 @@ class XmlMaterialProfile(InstanceContainer):
|
||||
# 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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user