mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Use extruderList rather than extruders
Extruders is deprecated. Always use the extruderList. In fact, the else case beneath was already using extruderList in the same way. Hopefully we can one day get rid of all the string conversion for the position in this class. I don't dare to refactor that without having a review though. Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
This commit is contained in:
parent
6d3acf946a
commit
afde5353eb
1 changed files with 1 additions and 1 deletions
|
@ -1114,7 +1114,7 @@ class MachineManager(QObject):
|
|||
return
|
||||
if material_node and material_node.container:
|
||||
material_container = material_node.container
|
||||
self._global_container_stack.extruders[position].material = material_container
|
||||
self._global_container_stack.extruderList[int(position)].material = material_container
|
||||
root_material_id = material_container.getMetaDataEntry("base_file", None)
|
||||
else:
|
||||
self._global_container_stack.extruderList[int(position)].material = empty_material_container
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue