mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
rename scene.gcode_list to gcode_dict
CURA-4741 With the multi build plate feature, scene.gcode_list is now a dict which stores a list of gcode for a build plate, so it makes more sense to have it renamed to "gcode_dict" because it's not a list.
This commit is contained in:
parent
d05f4a493b
commit
c8cef9583e
7 changed files with 37 additions and 23 deletions
|
@ -61,7 +61,10 @@ class GCodeWriter(MeshWriter):
|
|||
|
||||
active_build_plate = Application.getInstance().getBuildPlateModel().activeBuildPlate
|
||||
scene = Application.getInstance().getController().getScene()
|
||||
gcode_list = getattr(scene, "gcode_list")[active_build_plate]
|
||||
gcode_dict = getattr(scene, "gcode_dict")
|
||||
if not gcode_dict:
|
||||
return False
|
||||
gcode_list = gcode_dict.get(active_build_plate)
|
||||
if gcode_list:
|
||||
for gcode in gcode_list:
|
||||
stream.write(gcode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue