diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-06-14 10:40:11 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-06-14 10:40:11 +0300 |
commit | 1020b0a2f362145adef8c266647aaa11648e8f54 (patch) | |
tree | 76a96d25caa68c9366dfa118a3df057366473a52 /cura/QualityManager.py | |
parent | dd65248968882fb205fd21e04a7bfd8afb13498a (diff) |
Finding all qualities no longer does silly things with materials
The fetchContainer function also did magical material filtering, which caused it to go haywire.
CURA-3929
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 97cf2a356a..a0341742f9 100644 --- a/cura/QualityManager.py +++ b/cura/QualityManager.py @@ -55,7 +55,9 @@ class QualityManager: # \return the matching quality changes containers \type{List[InstanceContainer]}
def findQualityChangesByName(self, quality_changes_name: str, machine_definition: Optional["DefinitionContainerInterface"] = None):
criteria = {"type": "quality_changes", "name": quality_changes_name}
- result = self._getFilteredContainersForStack(machine_definition, [], **criteria)
+
+ result = self.findAllQualityChangesForMachine(machine_definition)
+ result = [quality_change for quality_change in result if quality_change.getName() == quality_changes_name]
return result
|