mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Use ID instead of definition
This commit is contained in:
parent
d31153cdbb
commit
e793ce1a2c
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
}
|
||||
self.appendItem(item)
|
||||
|
||||
for extruder in manager.getMachineExtruders(global_container_stack.getBottom()):
|
||||
for extruder in manager.getMachineExtruders(global_container_stack.getBottom().getId()):
|
||||
material = extruder.findContainer({ "type": "material" })
|
||||
colour = material.getMetaDataEntry("color_code", default = "#FFFF00") if material else "#FFFF00"
|
||||
position = extruder.getBottom().getMetaDataEntry("position", default = "0") #Position in the definition.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue