Merge branch 'main' into CURA-11761_container_stack_cache

This commit is contained in:
Erwan MATHIEU 2024-09-05 11:35:17 +02:00 committed by GitHub
commit ac8176d91e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 96 additions and 6 deletions

View file

@ -1090,9 +1090,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)