mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 02:48:59 +08:00
CURA-4400 fix start slicing when disabled extruder is incompatible
This commit is contained in:
parent
4568fab531
commit
ff1c378c08
@ -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…
x
Reference in New Issue
Block a user