Skip to content

Commit

Permalink
Get abstract color property from metadata not from properties
Browse files Browse the repository at this point in the history
Otherwise all the abstract profiles are visible

CURA-10953
  • Loading branch information
nallath committed Sep 15, 2023
1 parent 4060259 commit fbefe42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/XmlMaterialProfile/XmlMaterialProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ 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 property_values.get("abstract_color", False)
base_metadata["visible"] = not base_metadata.get("abstract_color", False)

compatible_entries = data.iterfind("./um:settings/um:setting[@key='hardware compatible']", cls.__namespaces)
try:
Expand Down

0 comments on commit fbefe42

Please sign in to comment.