mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:49:00 +08:00
Fix getting active quality changes group from machine manager
I have the feeling that we have multiple implementations of this but it's hard to find... Contributes to issue CURA-6600.
This commit is contained in:
parent
cb146b586d
commit
4f936f5c23
@ -1573,9 +1573,8 @@ class MachineManager(QObject):
|
||||
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
||||
if not global_stack or global_stack.qualityChanges == empty_quality_changes_container:
|
||||
return None
|
||||
candidate_groups = ContainerTree.getInstance().getCurrentQualityChangesGroups()
|
||||
for group in candidate_groups: # Match on the container ID of the global stack to find the quality changes group belonging to the active configuration.
|
||||
if group.node_for_global and group.node_for_global.container_id == global_stack.qualityChanges.getId():
|
||||
for group in ContainerTree.getInstance().getCurrentQualityGroups(): # Match on the container ID of the global stack to find the quality changes group belonging to the active configuration.
|
||||
if group.metadata_for_global and group.metadata_for_global["id"] == global_stack.qualityChanges.getId():
|
||||
return group
|
||||
return None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user