mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 00:59:01 +08:00
Return the empty container if there are no results when listing qualities
Contributes to CURA-2271
This commit is contained in:
parent
68662561e8
commit
c6afb14a09
@ -109,6 +109,10 @@ class QualityManager:
|
||||
if not result:
|
||||
basic_materials = self._getBasicMaterials(material_container)
|
||||
result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
|
||||
|
||||
if not result:
|
||||
result = [ self._empty_quality_container ]
|
||||
|
||||
return result
|
||||
|
||||
## Find all quality changes for a machine.
|
||||
|
Loading…
x
Reference in New Issue
Block a user