mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
XmlMaterial: Don't 'translate' to yes when it's a cura-setting.
CURA-11940
This commit is contained in:
parent
1c244f0a83
commit
b1dcfcb79d
1 changed files with 3 additions and 4 deletions
|
@ -1083,10 +1083,9 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
# Skip material properties (eg diameter) or metadata (eg GUID)
|
||||
return
|
||||
|
||||
if instance.value is True:
|
||||
data = "yes"
|
||||
elif instance.value is False:
|
||||
data = "no"
|
||||
truth_map = { True: "yes", False: "no" }
|
||||
if tag_name != "cura:setting" and instance.value in truth_map:
|
||||
data = truth_map[instance.value]
|
||||
else:
|
||||
data = str(instance.value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue