mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 06:35:15 +08:00
Use extruderList rather than deprecated extruders
This fixes a possible bug, too, if the extruders dictionary weren't iterated over in the order of the extruders. It would sometimes assign the profiles to the wrong extruders then. However I think the dictionary iteration in Python is in order of insertion and we probably insert them in the proper order by accident. Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
This commit is contained in:
parent
e0e0371de4
commit
4482b4f352
@ -261,7 +261,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
||||
if len(profile_or_list) == 1:
|
||||
global_profile = profile_or_list[0]
|
||||
extruder_profiles = []
|
||||
for idx, extruder in enumerate(global_stack.extruders.values()):
|
||||
for idx, extruder in enumerate(global_stack.extruderList):
|
||||
profile_id = ContainerRegistry.getInstance().uniqueName(global_stack.getId() + "_extruder_" + str(idx + 1))
|
||||
profile = InstanceContainer(profile_id)
|
||||
profile.setName(quality_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user