Browse Source

CURA-4525 only try to slice next build plate if there are actually build plates to slice

Jack Ha 7 years ago
parent
commit
0fdb470ec7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      plugins/CuraEngineBackend/CuraEngineBackend.py

+ 4 - 3
plugins/CuraEngineBackend/CuraEngineBackend.py

@@ -585,9 +585,10 @@ class CuraEngineBackend(QObject, Backend):
         Logger.log("d", "See if there is more to slice...")
         # Somehow this results in an Arcus Error
         # self.slice()
-        # Testing call slice again, allow backend to restart by using the timer
-        self.enableTimer()  # manually enable timer to be able to invoke slice, also when in manual slice mode
-        self._invokeSlice()
+        # Call slice again using the timer, allowing the backend to restart
+        if self._build_plates_to_be_sliced:
+            self.enableTimer()  # manually enable timer to be able to invoke slice, also when in manual slice mode
+            self._invokeSlice()
 
     ##  Called when a g-code message is received from the engine.
     #