Only schedule re-slice when there is none in progress

CURA-4427

After the stack error check is done, only schedule a re-slice when there
is none in progress and a re-slice is needed.
This commit is contained in:
Lipu Fei 2017-10-10 08:50:22 +02:00
parent b14ef41056
commit 9996c829d8

View file

@ -441,7 +441,7 @@ class CuraEngineBackend(QObject, Backend):
def _onStackErrorCheckFinished(self):
self._is_error_check_scheduled = False
if self._need_slicing:
if not self._slicing and self._need_slicing:
self.needsSlicing()
self._onChanged()
@ -536,7 +536,6 @@ class CuraEngineBackend(QObject, Backend):
#
# \param message The protobuf message containing the print time per feature
def _parseMessagePrintTimes(self, message):
result = {
"inset_0": message.time_inset_0,
"inset_x": message.time_inset_x,