mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47: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)
|
# Skip material properties (eg diameter) or metadata (eg GUID)
|
||||||
return
|
return
|
||||||
|
|
||||||
if instance.value is True:
|
truth_map = { True: "yes", False: "no" }
|
||||||
data = "yes"
|
if tag_name != "cura:setting" and instance.value in truth_map:
|
||||||
elif instance.value is False:
|
data = truth_map[instance.value]
|
||||||
data = "no"
|
|
||||||
else:
|
else:
|
||||||
data = str(instance.value)
|
data = str(instance.value)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue