Browse Source

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

Diego Prado Gesto 7 years ago
parent
commit
e51eaab08e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      plugins/CuraEngineBackend/StartSliceJob.py

+ 5 - 0
plugins/CuraEngineBackend/StartSliceJob.py

@@ -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: