mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Printer Output model now must have at least one extruder
CL-541
This commit is contained in:
parent
00a5127b19
commit
b63880e57f
1 changed files with 2 additions and 4 deletions
|
@ -21,14 +21,12 @@ class PrinterOutputModel(QObject):
|
|||
nameChanged = pyqtSignal()
|
||||
headPositionChanged = pyqtSignal()
|
||||
|
||||
def __init__(self, output_controller: "PrinterOutputController", extruders: Optional["ExtruderOutputModel"] = None, parent=None):
|
||||
def __init__(self, output_controller: "PrinterOutputController", extruders: List["ExtruderOutputModel"], parent=None):
|
||||
super().__init__(parent)
|
||||
self._bed_temperature = 0
|
||||
self._target_bed_temperature = 0
|
||||
self._name = ""
|
||||
self._controller = output_controller
|
||||
self._extruders = [] # type: List[ExtruderOutputModel]
|
||||
if self._extruders is not None:
|
||||
self._extruders = extruders
|
||||
|
||||
self._head_position = Vector(0, 0, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue