mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Don't show invisible materials in material selection
CURA-10953
This commit is contained in:
parent
331ff75315
commit
1a41f2650a
2 changed files with 7 additions and 0 deletions
|
@ -910,6 +910,9 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
base_metadata["properties"] = property_values
|
||||
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)
|
||||
|
||||
compatible_entries = data.iterfind("./um:settings/um:setting[@key='hardware compatible']", cls.__namespaces)
|
||||
try:
|
||||
common_compatibility = cls._parseCompatibleValue(next(compatible_entries).text) # type: ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue