mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Merge branch '3.5' of github.com:Ultimaker/Cura
This commit is contained in:
commit
757c8754b1
25 changed files with 50 additions and 45 deletions
|
@ -314,11 +314,11 @@ class ExtruderManager(QObject):
|
|||
if not global_stack:
|
||||
return []
|
||||
|
||||
result = list(global_stack.extruders.values())
|
||||
result_tuple_list = sorted(list(global_stack.extruders.items()), key = lambda x: int(x[0]))
|
||||
result_list = [item[1] for item in result_tuple_list]
|
||||
|
||||
machine_extruder_count = global_stack.getProperty("machine_extruder_count", "value")
|
||||
|
||||
return result[:machine_extruder_count]
|
||||
return result_list[:machine_extruder_count]
|
||||
|
||||
def _globalContainerStackChanged(self) -> None:
|
||||
# If the global container changed, the machine changed and might have extruders that were not registered yet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue