Make the UM3 work properly

This commit is contained in:
Arjen Hiemstra 2017-04-18 17:42:20 +02:00
parent 0a0353da82
commit 0467a8688a
3 changed files with 29 additions and 25 deletions

View file

@ -60,6 +60,12 @@ class ExtruderStack(CuraContainerStack):
return super().getProperty(key, property_name)
@override(CuraContainerStack)
def _getMachineDefinition(self) -> ContainerInterface:
if not self.getNextStack():
raise Exceptions.NoGlobalStackError("Extruder {id} is missing the next stack!".format(id = self.id))
return self.getNextStack()._getMachineDefinition()
extruder_stack_mime = MimeType(
name = "application/x-cura-extruderstack",