Skip to content

Commit

Permalink
Make slicing work for the --external-backend option again.
Browse files Browse the repository at this point in the history
  • Loading branch information
rburema committed Oct 2, 2024
1 parent 766b87a commit e3211d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/CuraEngineBackend/CuraEngineBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e3211d4

Please sign in to comment.