Browse Source

Remove use of deprecated extruders property

This also removes the need to sort them, since the list is already sorted by position.

Done during Turbo Testing and Tooling.
Ghostkeeper 4 years ago
parent
commit
1bb4458dca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/GCodeWriter/GCodeWriter.py

+ 1 - 1
plugins/GCodeWriter/GCodeWriter.py

@@ -160,7 +160,7 @@ class GCodeWriter(MeshWriter):
         data = {"global_quality": serialized}
 
         all_setting_keys = flat_global_container.getAllKeys()
-        for extruder in sorted(stack.extruders.values(), key = lambda k: int(k.getMetaDataEntry("position"))):
+        for extruder in stack.extruderList:
             extruder_quality = extruder.qualityChanges
             if extruder_quality.getId() == "empty_quality_changes":
                 # Same story, if quality changes is empty, create a new one