Browse Source

Also check for 'abstract color' (support) when a single material is added.

Previously, this was only checked on 'load all' leading to some weird edge-ish cases where loading an any-color material on a printer that does support it, briefly also made it available on printers that (otherwise would, but) don't -- but only for that session.

part of CURA-12159 (also refer to CURA-11634)
Remco Burema 5 months ago
parent
commit
2e7450bbf3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cura/Machines/VariantNode.py

+ 2 - 0
cura/Machines/VariantNode.py

@@ -128,6 +128,8 @@ class VariantNode(ContainerNode):
             return  # We won't add any materials.
         material_definition = container.getMetaDataEntry("definition")
 
+        if (not self.machine.supports_abstract_color) and container.getMetaDataEntry("abstract_color", False):
+            return
         base_file = container.getMetaDataEntry("base_file")
         if self.machine.isExcludedMaterialBaseFile(base_file):
             return  # Material is forbidden for this printer.