PrinterOutputModel now has different extruders if it has more than one.

It used to just fill the list with references to the first one created.
CL-541
This commit is contained in:
Jaime van Kessel 2017-11-21 16:36:51 +01:00
parent d8b12be5e4
commit 34e808d585
2 changed files with 2 additions and 3 deletions

View file

@ -29,8 +29,7 @@ class PrinterOutputModel(QObject):
self._name = ""
self._key = "" # Unique identifier
self._controller = output_controller
self._extruders = [ExtruderOutputModel(printer=self)] * number_of_extruders
self._extruders = [ExtruderOutputModel(printer=self) for i in range(number_of_extruders)]
self._head_position = Vector(0, 0, 0)
self._active_print_job = None # type: Optional[PrintJobOutputModel]