From 2e7450bbf3a24cc26e8e3b0b4b69a4a5952d1e95 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 2 Oct 2024 11:49:29 +0200 Subject: [PATCH] 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) --- cura/Machines/VariantNode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/Machines/VariantNode.py b/cura/Machines/VariantNode.py index b9ff0b5fad..44f73ae2d7 100644 --- a/cura/Machines/VariantNode.py +++ b/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.