CURA-4461 Don't allow Cura to Slice when the buildplate is not compatible with the material

This commit is contained in:
Diego Prado Gesto 2018-01-15 16:33:15 +01:00
parent badf5a9043
commit e51eaab08e

View file

@ -122,6 +122,11 @@ class StartSliceJob(Job):
self.setResult(StartJobResult.BuildPlateError)
return
# Don't slice if the buildplate or the nozzle type is incompatible with the materials
if not Application.getInstance().getMachineManager().variantBuildplateCompatible:
self.setResult(StartJobResult.MaterialIncompatible)
return
for extruder_stack in ExtruderManager.getInstance().getMachineExtruders(stack.getId()):
material = extruder_stack.findContainer({"type": "material"})
if material: