mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
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
This commit is contained in:
parent
dd65248968
commit
1020b0a2f3
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ class QualityManager:
|
||||||
# \return the matching quality changes containers \type{List[InstanceContainer]}
|
# \return the matching quality changes containers \type{List[InstanceContainer]}
|
||||||
def findQualityChangesByName(self, quality_changes_name: str, machine_definition: Optional["DefinitionContainerInterface"] = None):
|
def findQualityChangesByName(self, quality_changes_name: str, machine_definition: Optional["DefinitionContainerInterface"] = None):
|
||||||
criteria = {"type": "quality_changes", "name": quality_changes_name}
|
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
|
return result
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue