CURA-4525 fix manual slice slicing more than one build plate at a time

This commit is contained in:
Jack Ha 2018-01-10 14:12:21 +01:00
parent 4751de00ae
commit 80aaad83e1

View file

@ -238,6 +238,8 @@ class CuraEngineBackend(QObject, Backend):
self._slicing = True
self.slicingStarted.emit()
self.determineAutoSlicing() # Switch timer on or off if appropriate
slice_message = self._socket.createMessage("cura.proto.Slice")
self._start_slice_job = StartSliceJob.StartSliceJob(slice_message)
self._start_slice_job_build_plate = build_plate_to_be_sliced
@ -584,6 +586,7 @@ class CuraEngineBackend(QObject, Backend):
# 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()
## Called when a g-code message is received from the engine.