When an error check finishes, only trigger auto-slicing if needed

CURA-4092

Many things can trigger an error check, but Cura should only auto-slice
if the error check was scheduled due to a value change.
This commit is contained in:
Lipu Fei 2017-07-27 10:20:04 +02:00
parent c16bfa8949
commit 439f3e5029

View file

@ -453,8 +453,9 @@ class CuraEngineBackend(QObject, Backend):
def _onStackErrorCheckFinished(self):
self._is_error_check_scheduled = False
self.needsSlicing()
self._onChanged()
if self._need_slicing:
self.needsSlicing()
self._onChanged()
## Called when a sliced layer data message is received from the engine.
#