CURA-5444 Always create the instance of the material even if it is not

compatible, otherwise it will never show as
incompatible if the material profile doesn't define hotends in the
machine.
This commit is contained in:
Diego Prado Gesto 2018-06-08 11:21:17 +02:00
parent b55d2eda4f
commit dc1e36d726
2 changed files with 26 additions and 24 deletions

View File

@ -632,7 +632,8 @@ class XmlMaterialProfile(InstanceContainer):
machine_manufacturer = identifier.get("manufacturer", definition.get("manufacturer", "Unknown")) #If the XML material doesn't specify a manufacturer, use the one in the actual printer definition.
if machine_compatibility:
# Always create the instance of the material even if it is not compatible, otherwise it will never
# show as incompatible if the material profile doesn't define hotends in the machine - CURA-5444
new_material_id = self.getId() + "_" + machine_id
# The child or derived material container may already exist. This can happen when a material in a

View File

@ -8,5 +8,6 @@
"Ultimaker 3 Extended": "ultimaker3_extended",
"Ultimaker Original": "ultimaker_original",
"Ultimaker Original+": "ultimaker_original_plus",
"Ultimaker Original Dual Extrusion": "ultimaker_original_dual",
"IMADE3D JellyBOX": "imade3d_jellybox"
}