diff options
author | Ghostkeeper <rubend@tutanota.com> | 2020-05-29 18:45:41 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2020-05-29 18:45:41 +0300 |
commit | 1bb4458dcab39d6ffea232a6445084bf26c1c625 (patch) | |
tree | 5a46d6c8df38a35da6b465fd35049b2d0fb37172 /plugins/GCodeWriter | |
parent | 1fb78d23a5e19174dd2810c6ed8044ccca8a2d65 (diff) |
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.
Diffstat (limited to 'plugins/GCodeWriter')
-rw-r--r-- | plugins/GCodeWriter/GCodeWriter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/GCodeWriter/GCodeWriter.py b/plugins/GCodeWriter/GCodeWriter.py index 160857443b..bb901bed89 100644 --- a/plugins/GCodeWriter/GCodeWriter.py +++ b/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 |