mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Use container tree to get current quality groups
Contributes to issue CURA-6600.
This commit is contained in:
parent
b2cee850c9
commit
4fd886f2e8
1 changed files with 2 additions and 3 deletions
|
@ -1135,9 +1135,8 @@ class MachineManager(QObject):
|
|||
# A custom quality can be created based on "not supported".
|
||||
# In that case, do not set quality containers to empty.
|
||||
quality_group = None
|
||||
if quality_type != "not_supported":
|
||||
quality_group_dict = QualityManager.getInstance().getQualityGroups(self._global_container_stack)
|
||||
quality_group = quality_group_dict.get(quality_type)
|
||||
if quality_type != "not_supported": # Find the quality group that the quality changes was based on.
|
||||
quality_group = ContainerTree.getInstance().getCurrentQualityGroups().get(quality_type)
|
||||
if quality_group is None:
|
||||
self._fixQualityChangesGroupToNotSupported(quality_changes_group)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue