mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:29:01 +08:00
Use extruderList rather than deprecated extruders
I looked into changing that position into an integer and perhaps the dictionary into a list, but this dictionary is passed around throughout all of the functions so that would be quite a refactor. Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
This commit is contained in:
parent
acc8e24cb4
commit
696d2ffa1d
@ -624,7 +624,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||
|
||||
global_stack = CuraStackBuilder.createMachine(machine_name, self._machine_info.definition_id)
|
||||
if global_stack: # Only switch if creating the machine was successful.
|
||||
extruder_stack_dict = global_stack.extruders
|
||||
extruder_stack_dict = {str(position): extruder for position, extruder in enumerate(global_stack.extruderList)}
|
||||
|
||||
self._container_registry.addContainer(global_stack)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user