mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:46:05 +08:00
Pick quality changes group from quality changes groups, not quality groups
Oops. Probably went wrong when I copied over this code from some other place. Contributes to issue CURA-6600.
This commit is contained in:
parent
2d0a122c2d
commit
92d2686fed
@ -1573,7 +1573,7 @@ class MachineManager(QObject):
|
||||
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
||||
if not global_stack or global_stack.qualityChanges == empty_quality_changes_container:
|
||||
return None
|
||||
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.
|
||||
for group in ContainerTree.getInstance().getCurrentQualityChangesGroups(): # 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