Disable material if not compatible

Similar to how it's displayed in the printer.

Contributes to issue CURA-5460.
This commit is contained in:
Ghostkeeper 2018-07-09 17:06:05 +02:00
parent 16226bdd48
commit c0fc0a7eba
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
5 changed files with 12 additions and 7 deletions

View file

@ -122,7 +122,8 @@ class BrandMaterialsModel(ListModel):
"brand": metadata["brand"],
"material": metadata["material"],
"color_name": metadata["color_name"],
"container_node": container_node
"container_node": container_node,
"compatible": metadata.get("compatible", "unknown")
}
brand_group_dict[brand][material_type].append(item)