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:
Ghostkeeper 2020-05-15 15:20:46 +02:00
parent 6d3acf946a
commit afde5353eb
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -1114,7 +1114,7 @@ class MachineManager(QObject):
return return
if material_node and material_node.container: if material_node and material_node.container:
material_container = 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) root_material_id = material_container.getMetaDataEntry("base_file", None)
else: else:
self._global_container_stack.extruderList[int(position)].material = empty_material_container self._global_container_stack.extruderList[int(position)].material = empty_material_container