diff options
author | fieldOfView <aldo@fieldofview.com> | 2016-09-29 14:48:23 +0300 |
---|---|---|
committer | fieldOfView <aldo@fieldofview.com> | 2016-09-29 14:48:23 +0300 |
commit | 040f49e474a79464676259b7cb68829dc707258d (patch) | |
tree | a834db46d0a2081737f871878224832f7d99e812 /cura/QualityManager.py | |
parent | 2742a4ef65c28df22ceeb8c949f229f7558c3b85 (diff) |
Fix cases where there is no "normal" quality
CURA-2494
Diffstat (limited to 'cura/QualityManager.py')
-rw-r--r-- | cura/QualityManager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cura/QualityManager.py b/cura/QualityManager.py index e33398fc35..9568f15184 100644 --- a/cura/QualityManager.py +++ b/cura/QualityManager.py @@ -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):
|