From afde5353eb43083c50899ac81a15daa110639662 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 15 May 2020 15:20:46 +0200 Subject: [PATCH] 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. --- cura/Settings/MachineManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 2866e3a494..1766bc616f 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -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