mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:59:03 +08:00
Fix the case that a quality_type is not available
CURA-5218
This commit is contained in:
parent
e50be5cbe7
commit
8d3c3c0e80
@ -1020,11 +1020,10 @@ class MachineManager(QObject):
|
||||
quality_type = quality_changes_group.quality_type
|
||||
# A custom quality can be created based on "not supported".
|
||||
# In that case, do not set quality containers to empty.
|
||||
if quality_type == "not_supported":
|
||||
quality_group = None
|
||||
else:
|
||||
quality_group = None
|
||||
if quality_type != "not_supported":
|
||||
quality_group_dict = self._quality_manager.getQualityGroups(self._global_container_stack)
|
||||
quality_group = quality_group_dict[quality_type]
|
||||
quality_group = quality_group_dict.get(quality_type)
|
||||
|
||||
quality_changes_container = self._empty_quality_changes_container
|
||||
if quality_changes_group.node_for_global:
|
||||
|
Loading…
x
Reference in New Issue
Block a user