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>2018-01-10 16:25:09 +0300
committerJack Ha <jackha@gmail.com>2018-01-10 16:25:09 +0300
commitdab0ebd2084649c2b4348caed7c70b6a7013848e (patch)
tree97602acc0673b81abb65bbd3899fe91f6493fd8f /plugins/GCodeWriter
parent686ac2292d85dc38c826de0c230f2cb784d94e73 (diff)
CURA-4525 fix saving empty gcode giving error
Diffstat (limited to 'plugins/GCodeWriter')
-rw-r--r--plugins/GCodeWriter/GCodeWriter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/GCodeWriter/GCodeWriter.py b/plugins/GCodeWriter/GCodeWriter.py
index f0e5c88f37..95c48c4d9e 100644
--- a/plugins/GCodeWriter/GCodeWriter.py
+++ b/plugins/GCodeWriter/GCodeWriter.py
@@ -64,8 +64,8 @@ class GCodeWriter(MeshWriter):
gcode_dict = getattr(scene, "gcode_dict")
if not gcode_dict:
return False
- gcode_list = gcode_dict.get(active_build_plate)
- if gcode_list:
+ gcode_list = gcode_dict.get(active_build_plate, None)
+ if gcode_list is not None:
for gcode in gcode_list:
stream.write(gcode)
# Serialise the current container stack and put it at the end of the file.