mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix cases where there is no "normal" quality
CURA-2494
This commit is contained in:
parent
2742a4ef65
commit
040f49e474
2 changed files with 14 additions and 3 deletions
|
|
@ -53,7 +53,9 @@ class QualityManager:
|
|||
# the current set of selected materials is used.
|
||||
# \return the matching quality containers \type{List[ContainerInstance]}
|
||||
def findQualityByQualityType(self, quality_type, machine_definition=None, material_containers=None):
|
||||
criteria = {"type": "quality", "quality_type": quality_type}
|
||||
criteria = {"type": "quality"}
|
||||
if quality_type:
|
||||
criteria["quality_type"] = quality_type
|
||||
return self._getFilteredContainersForStack(machine_definition, material_containers, **criteria)
|
||||
|
||||
def _getFilteredContainers(self, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue