CURA-4525 fixed material info per build plate, bugfix arrange on load

This commit is contained in:
Jack Ha 2017-11-15 10:28:34 +01:00
parent 4a893c048e
commit be6561b575
5 changed files with 21 additions and 16 deletions

View file

@ -59,8 +59,9 @@ class GCodeWriter(MeshWriter):
Logger.log("e", "GCode Writer does not support non-text mode.")
return False
active_build_plate = Application.getInstance().getBuildPlateModel().activeBuildPlate
scene = Application.getInstance().getController().getScene()
gcode_list = getattr(scene, "gcode_list")
gcode_list = getattr(scene, "gcode_list")[active_build_plate]
if gcode_list:
for gcode in gcode_list:
stream.write(gcode)