mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Restart timer after slicing is performed when not enabled.
CURA-1502
This commit is contained in:
parent
c06e5f4d39
commit
2be8111f1b
1 changed files with 5 additions and 3 deletions
|
@ -127,13 +127,15 @@ class CuraEngineBackend(Backend):
|
||||||
|
|
||||||
## Perform a slice of the scene.
|
## Perform a slice of the scene.
|
||||||
def slice(self):
|
def slice(self):
|
||||||
|
if not self._enabled or not self._global_container_stack: #We shouldn't be slicing.
|
||||||
|
# try again in a short time
|
||||||
|
self._change_timer.start()
|
||||||
|
return
|
||||||
|
|
||||||
self.printDurationMessage.emit(0, [0])
|
self.printDurationMessage.emit(0, [0])
|
||||||
|
|
||||||
self._stored_layer_data = []
|
self._stored_layer_data = []
|
||||||
|
|
||||||
if not self._enabled or not self._global_container_stack: #We shouldn't be slicing.
|
|
||||||
return
|
|
||||||
|
|
||||||
if self._slicing: #We were already slicing. Stop the old job.
|
if self._slicing: #We were already slicing. Stop the old job.
|
||||||
self._terminate()
|
self._terminate()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue