Fix crash when syncing with configuration that has no printcores active

CURA-6826
This commit is contained in:
Jaime van Kessel 2019-10-10 09:55:17 +02:00
parent 44cb810c85
commit ec4817db87
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -1434,6 +1434,8 @@ class MachineManager(QObject):
else:
machine_node = ContainerTree.getInstance().machines.get(self._global_container_stack.definition.getId())
variant_node = machine_node.variants.get(extruder_configuration.hotendID)
if variant_node is None:
continue
self._setVariantNode(position, variant_node)
# Find the material profile that the printer has stored.