mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 05:39:02 +08:00
CURA-4525 fix saving empty gcode giving error
This commit is contained in:
parent
686ac2292d
commit
dab0ebd208
@ -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…
x
Reference in New Issue
Block a user