mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-4525 fix saving empty gcode giving error
This commit is contained in:
parent
686ac2292d
commit
dab0ebd208
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ class GCodeWriter(MeshWriter):
|
||||||
gcode_dict = getattr(scene, "gcode_dict")
|
gcode_dict = getattr(scene, "gcode_dict")
|
||||||
if not gcode_dict:
|
if not gcode_dict:
|
||||||
return False
|
return False
|
||||||
gcode_list = gcode_dict.get(active_build_plate)
|
gcode_list = gcode_dict.get(active_build_plate, None)
|
||||||
if gcode_list:
|
if gcode_list is not None:
|
||||||
for gcode in gcode_list:
|
for gcode in gcode_list:
|
||||||
stream.write(gcode)
|
stream.write(gcode)
|
||||||
# Serialise the current container stack and put it at the end of the file.
|
# Serialise the current container stack and put it at the end of the file.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue