From e3211d412849637ced23eeacce9f6fb74ab79428 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 2 Oct 2024 12:57:25 +0200 Subject: [PATCH] Make slicing work for the --external-backend option again. --- plugins/CuraEngineBackend/CuraEngineBackend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index a7126af14e8..af015396e30 100755 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -570,7 +570,8 @@ def _onStartSliceCompleted(self, job: StartSliceJob) -> None: return # Preparation completed, send it to the backend. - if not self._socket.sendMessage(job.getSliceMessage()): + immediate_success = self._socket.sendMessage(job.getSliceMessage()) + if (not CuraApplication.getInstance().getUseExternalBackend()) and (not immediate_success): if self._last_socket_error is not None and self._last_socket_error.getErrorCode() == Arcus.ErrorCode.MessageTooBigError: error_txt = catalog.i18nc("@info:status", "Unable to send the model data to the engine. Please try to use a less detailed model, or reduce the number of instances.") else: