mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 05:09:06 +08: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
@ -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…
x
Reference in New Issue
Block a user