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:
Lipu Fei 2018-01-08 16:18:41 +01:00
parent d05f4a493b
commit c8cef9583e
7 changed files with 37 additions and 23 deletions

View file

@ -676,7 +676,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._print_finished = True
self.writeStarted.emit(self)
active_build_plate = Application.getInstance().getBuildPlateModel().activeBuildPlate
self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list")[active_build_plate]
self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_dict")[active_build_plate]
print_information = Application.getInstance().getPrintInformation()
warnings = [] # There might be multiple things wrong. Keep a list of all the stuff we need to warn about.