mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:38:59 +08:00
Don't crash when there is no global quality container
We fill the stack with an empty container rather than with None in that case. Contributes to issue CURA-3301.
This commit is contained in:
parent
fe406f530c
commit
b9cdeb68d6
@ -916,6 +916,8 @@ class MachineManager(QObject):
|
||||
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [], global_quality = True)
|
||||
else:
|
||||
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material])
|
||||
if not global_quality:
|
||||
global_quality = self._empty_quality_container
|
||||
|
||||
# Find the values for each extruder.
|
||||
extruder_stacks = ExtruderManager.getInstance().getActiveExtruderStacks()
|
||||
|
Loading…
x
Reference in New Issue
Block a user