mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 21:31:15 -07: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".
|
# A custom quality can be created based on "not supported".
|
||||||
# In that case, do not set quality containers to empty.
|
# In that case, do not set quality containers to empty.
|
||||||
quality_group = None
|
quality_group = None
|
||||||
if quality_type != "not_supported":
|
if quality_type != "not_supported": # Find the quality group that the quality changes was based on.
|
||||||
quality_group_dict = QualityManager.getInstance().getQualityGroups(self._global_container_stack)
|
quality_group = ContainerTree.getInstance().getCurrentQualityGroups().get(quality_type)
|
||||||
quality_group = quality_group_dict.get(quality_type)
|
|
||||||
if quality_group is None:
|
if quality_group is None:
|
||||||
self._fixQualityChangesGroupToNotSupported(quality_changes_group)
|
self._fixQualityChangesGroupToNotSupported(quality_changes_group)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue