mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
CURA-4400 fix start slicing when disabled extruder is incompatible
This commit is contained in:
parent
4568fab531
commit
ff1c378c08
2 changed files with 4 additions and 0 deletions
|
@ -637,6 +637,8 @@ class MachineManager(QObject):
|
|||
buildplate_compatible = True # It is compatible by default
|
||||
extruder_stacks = self._global_container_stack.extruders.values()
|
||||
for stack in extruder_stacks:
|
||||
if not stack.isEnabled:
|
||||
continue
|
||||
material_container = stack.material
|
||||
if material_container == self._empty_material_container:
|
||||
continue
|
||||
|
|
|
@ -131,6 +131,8 @@ class StartSliceJob(Job):
|
|||
|
||||
for position, extruder_stack in stack.extruders.items():
|
||||
material = extruder_stack.findContainer({"type": "material"})
|
||||
if not extruder_stack.isEnabled:
|
||||
continue
|
||||
if material:
|
||||
if material.getMetaDataEntry("compatible") == False:
|
||||
self.setResult(StartJobResult.MaterialIncompatible)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue