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.
This commit is contained in:
Ghostkeeper 2020-05-29 17:45:41 +02:00
parent 1fb78d23a5
commit 1bb4458dca
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -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