Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Ha <jackha@gmail.com>2017-11-15 12:28:34 +0300
committerJack Ha <jackha@gmail.com>2017-11-15 12:28:34 +0300
commitbe6561b5754d8b13bf51b5cb990907724787797f (patch)
treedebb76cb6ec357ede439a56757b8e6a6b13ccd28 /plugins/GCodeWriter
parent4a893c048e28259819aac59f72e0e54d628e76f7 (diff)
CURA-4525 fixed material info per build plate, bugfix arrange on load
Diffstat (limited to 'plugins/GCodeWriter')
-rw-r--r--plugins/GCodeWriter/GCodeWriter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/GCodeWriter/GCodeWriter.py b/plugins/GCodeWriter/GCodeWriter.py
index 3860590ef7..192354d947 100644
--- a/plugins/GCodeWriter/GCodeWriter.py
+++ b/plugins/GCodeWriter/GCodeWriter.py
@@ -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)