mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:19:01 +08:00
CURA-5130 move the part that determines if it should slice
This commit is contained in:
parent
3c7b28a144
commit
283cbed1ad
@ -527,9 +527,6 @@ class CuraEngineBackend(QObject, Backend):
|
|||||||
|
|
||||||
## Convenient function: mark everything to slice, emit state and clear layer data
|
## Convenient function: mark everything to slice, emit state and clear layer data
|
||||||
def needsSlicing(self):
|
def needsSlicing(self):
|
||||||
self.determineAutoSlicing()
|
|
||||||
if self._is_disabled:
|
|
||||||
return
|
|
||||||
self.stopSlicing()
|
self.stopSlicing()
|
||||||
self.markSliceAll()
|
self.markSliceAll()
|
||||||
self.processingProgress.emit(0.0)
|
self.processingProgress.emit(0.0)
|
||||||
@ -551,6 +548,10 @@ class CuraEngineBackend(QObject, Backend):
|
|||||||
self._change_timer.stop()
|
self._change_timer.stop()
|
||||||
|
|
||||||
def _onStackErrorCheckFinished(self):
|
def _onStackErrorCheckFinished(self):
|
||||||
|
self.determineAutoSlicing()
|
||||||
|
if self._is_disabled:
|
||||||
|
return
|
||||||
|
|
||||||
if not self._slicing and self._build_plates_to_be_sliced:
|
if not self._slicing and self._build_plates_to_be_sliced:
|
||||||
self.needsSlicing()
|
self.needsSlicing()
|
||||||
self._onChanged()
|
self._onChanged()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user