mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:36:05 +08:00
Printer Output model now must have at least one extruder
CL-541
This commit is contained in:
parent
00a5127b19
commit
b63880e57f
@ -21,15 +21,13 @@ class PrinterOutputModel(QObject):
|
|||||||
nameChanged = pyqtSignal()
|
nameChanged = pyqtSignal()
|
||||||
headPositionChanged = 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)
|
super().__init__(parent)
|
||||||
self._bed_temperature = 0
|
self._bed_temperature = 0
|
||||||
self._target_bed_temperature = 0
|
self._target_bed_temperature = 0
|
||||||
self._name = ""
|
self._name = ""
|
||||||
self._controller = output_controller
|
self._controller = output_controller
|
||||||
self._extruders = [] # type: List[ExtruderOutputModel]
|
self._extruders = extruders
|
||||||
if self._extruders is not None:
|
|
||||||
self._extruders = extruders
|
|
||||||
|
|
||||||
self._head_position = Vector(0, 0, 0)
|
self._head_position = Vector(0, 0, 0)
|
||||||
self._active_print_job = None # type: Optional[PrintJobOutputModel]
|
self._active_print_job = None # type: Optional[PrintJobOutputModel]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user