Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2019-07-25 10:42:00 +0300
committerJaime van Kessel <nallath@gmail.com>2019-07-25 10:42:00 +0300
commit8311a39f086b8988aff70edae61ac7498f98bd72 (patch)
tree7eb20d343e4c8a73d6c23a0ac8a9a3f5082259cf /plugins/CuraEngineBackend/StartSliceJob.py
parent18d1148c78dae1510b4490e4126b26b98f3ce466 (diff)
Fix case where an error in the stack would not prevent slicing
CURA-6680
Diffstat (limited to 'plugins/CuraEngineBackend/StartSliceJob.py')
-rw-r--r--plugins/CuraEngineBackend/StartSliceJob.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py
index fc4de3dfa5..2f6b644853 100644
--- a/plugins/CuraEngineBackend/StartSliceJob.py
+++ b/plugins/CuraEngineBackend/StartSliceJob.py
@@ -133,6 +133,14 @@ class StartSliceJob(Job):
self.setResult(StartJobResult.BuildPlateError)
return
+ # Wait for error checker to be done.
+ while CuraApplication.getInstance().getMachineErrorChecker().needToWaitForResult:
+ time.sleep(0.1)
+
+ if CuraApplication.getInstance().getMachineErrorChecker().hasError:
+ self.setResult(StartJobResult.SettingError)
+ return
+
# Don't slice if the buildplate or the nozzle type is incompatible with the materials
if not CuraApplication.getInstance().getMachineManager().variantBuildplateCompatible and \
not CuraApplication.getInstance().getMachineManager().variantBuildplateUsable: