Browse Source

Fix crash when syncing with configuration that has no printcores active

CURA-6826
Jaime van Kessel 5 years ago
parent
commit
ec4817db87
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cura/Settings/MachineManager.py

+ 2 - 0
cura/Settings/MachineManager.py

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