diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-06-12 16:14:25 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-06-12 16:14:25 +0300 |
commit | 9a54ff426bc3b5d3ebf077cb5a3d90a00e653892 (patch) | |
tree | 4c23130c09f02e60b42b47ed7da004d540407f3f /cura/QualityManager.py | |
parent | a306b4dadacf6361d084afe95ea88e19b9a01014 (diff) |
FindAllQualitiesForMachineMaterial only looks with basic materials if it found them
CURA-3911
Diffstat (limited to 'cura/QualityManager.py')
-rw-r--r-- | cura/QualityManager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/QualityManager.py b/cura/QualityManager.py index f13181ef06..97cf2a356a 100644 --- a/cura/QualityManager.py +++ b/cura/QualityManager.py @@ -118,7 +118,8 @@ class QualityManager: result = self._getFilteredContainersForStack(machine_definition, [material_container], **criteria)
if not result:
basic_materials = self._getBasicMaterials(material_container)
- result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
+ if basic_materials:
+ result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
return result
|