Merge branch 'main' into main

This commit is contained in:
Saumya Jain 2023-09-15 16:13:05 +02:00 committed by GitHub
commit ada29f3b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
230 changed files with 11633 additions and 1469 deletions

View file

@ -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 base_metadata.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