Fixes for UM3 network printing for multi build plate

This commit is contained in:
ChrisTerBeke 2018-01-12 10:52:14 +01:00
parent 7d6e41f6c8
commit b086e9cb53

View file

@ -80,8 +80,11 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
Application.getInstance().getController().setActiveStage("MonitorStage") Application.getInstance().getController().setActiveStage("MonitorStage")
self.writeStarted.emit(self) self.writeStarted.emit(self)
self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list", []) gcode_dict = getattr(Application.getInstance().getController().getScene(), "gcode_dict", [])
if not self._gcode: active_build_plate_id = Application.getInstance().getBuildPlateModel().activeBuildPlate
gcode_list = gcode_dict[active_build_plate_id]
if not gcode_list:
# Unable to find g-code. Nothing to send # Unable to find g-code. Nothing to send
return return