mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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:
parent
d8b12be5e4
commit
34e808d585
2 changed files with 2 additions and 3 deletions
|
@ -29,8 +29,7 @@ class PrinterOutputModel(QObject):
|
||||||
self._name = ""
|
self._name = ""
|
||||||
self._key = "" # Unique identifier
|
self._key = "" # Unique identifier
|
||||||
self._controller = output_controller
|
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._head_position = Vector(0, 0, 0)
|
||||||
self._active_print_job = None # type: Optional[PrintJobOutputModel]
|
self._active_print_job = None # type: Optional[PrintJobOutputModel]
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ Column
|
||||||
{
|
{
|
||||||
color: UM.Theme.getColor("sidebar")
|
color: UM.Theme.getColor("sidebar")
|
||||||
width: index == machineExtruderCount.properties.value - 1 && index % 2 == 0 ? extrudersGrid.width : Math.floor(extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2)
|
width: index == machineExtruderCount.properties.value - 1 && index % 2 == 0 ? extrudersGrid.width : Math.floor(extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2)
|
||||||
extruderModel: activePrinter.extruders[index]
|
extruderModel: modelData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue