Skip to content

Commit

Permalink
Prevent abstract color profiles to be filtered out for machines that …
Browse files Browse the repository at this point in the history
…support them.

CURA-11634
  • Loading branch information
pkuiper-ultimaker committed Sep 26, 2024
1 parent 485b94f commit 2c63e33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion plugins/XmlMaterialProfile/XmlMaterialProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,9 @@ def deserializeMetadata(cls, serialized: str, container_id: str) -> List[Dict[st
base_metadata["definition"] = "fdmprinter"

# Certain materials are loaded but should not be visible / selectable to the user.
base_metadata["visible"] = not base_metadata.get("abstract_color", False)
# Only show abstract color profiles (Any Color) if the machine supports them
base_metadata["visible"] = (not base_metadata.get("abstract_color", False)
or base_metadata.get("supports_abstract_color", False))

compatible_entries = data.iterfind("./um:settings/um:setting[@key='hardware compatible']", cls.__namespaces)
try:
Expand Down
3 changes: 2 additions & 1 deletion resources/definitions/fdmprinter.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"preferred_quality_type": "normal",
"machine_extruder_trains": { "0": "fdmextruder" },
"supports_usb_connection": true,
"supports_network_connection": false
"supports_network_connection": false,
"supports_abstract_color": false
},
"settings":
{
Expand Down

0 comments on commit 2c63e33

Please sign in to comment.