mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 07:35:59 +08:00
Fix findContainer call without kwargs
It has no kwargs. This needs to be provided as dictionary. Contributes to issues CURA-340 and CURA-1278.
This commit is contained in:
parent
8c7b3a05b6
commit
8b75a230a0
@ -52,7 +52,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||||||
if not global_container_stack:
|
if not global_container_stack:
|
||||||
return #There is no machine to get the extruders of.
|
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())):
|
||||||
material = extruder.findContainer(type = "material")
|
material = extruder.findContainer({ "type": "material" })
|
||||||
colour = material.getMetaDataEntry("color_code", default = "#FFFF00") if material else "#FFFF00"
|
colour = material.getMetaDataEntry("color_code", default = "#FFFF00") if material else "#FFFF00"
|
||||||
item = { #Construct an item with only the relevant information.
|
item = { #Construct an item with only the relevant information.
|
||||||
"name": extruder.getName(),
|
"name": extruder.getName(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user