mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
Added setting sending per extruder
CURA-1681
This commit is contained in:
parent
b6649eab3a
commit
d93044a338
3 changed files with 20 additions and 8 deletions
|
@ -51,7 +51,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
global_container_stack = UM.Application.getInstance().getGlobalContainerStack()
|
||||
if not global_container_stack:
|
||||
return #There is no machine to get the extruders of.
|
||||
for index, extruder in enumerate(manager.getMachineExtruders(global_container_stack.getBottom())):
|
||||
for index, extruder in enumerate(manager.getMachineExtruders(global_container_stack.getBottom().getId())):
|
||||
material = extruder.findContainer({ "type": "material" })
|
||||
colour = material.getMetaDataEntry("color_code", default = "#FFFF00") if material else "#FFFF00"
|
||||
item = { #Construct an item with only the relevant information.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue