From 228039545bb4eab3134a1fd75507e2b010749ec3 Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Thu, 16 Nov 2017 09:58:53 +0100 Subject: [PATCH] CURA-4525 send active build plate to legacy UM3 with Print over network --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 3 ++- resources/qml/Actions.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index d8dd780ed5..8895d1c22d 100755 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -675,7 +675,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): Application.getInstance().showPrintMonitor.emit(True) self._print_finished = True self.writeStarted.emit(self) - self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list") + active_build_plate = Application.getInstance().getBuildPlateModel().activeBuildPlate + self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list")[active_build_plate] print_information = Application.getInstance().getPrintInformation() warnings = [] # There might be multiple things wrong. Keep a list of all the stuff we need to warn about. diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index c6b0a443bb..e2db0171b1 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -306,7 +306,7 @@ Item id: arrangeAllBuildPlatesAction; text: catalog.i18nc("@action:inmenu menubar:edit","Arrange All Models To All Build Plates"); //iconName: "document-open"; - onTriggered: CuraApplication.arrangeObjectsToAllBuildPlates(); + onTriggered: Printer.arrangeObjectsToAllBuildPlates(); } Action