mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 04:59:00 +08:00
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:
parent
1fb78d23a5
commit
1bb4458dca
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user