From 8699a407de924f11faee6b3a637947e82bef067a Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 4 Jul 2019 09:09:22 +0200 Subject: [PATCH] Filter on 'material' metadata instead of material_id This is consistent with how the material is stored in other profiles, such as quality profiles. Contributes to issue CURA-6597. --- cura/Settings/IntentManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Settings/IntentManager.py b/cura/Settings/IntentManager.py index e16115ba2a..51aafb0f7a 100644 --- a/cura/Settings/IntentManager.py +++ b/cura/Settings/IntentManager.py @@ -43,7 +43,7 @@ class IntentManager(QObject): # an empty list if nothing was found. def intentMetadatas(self, definition_id: str, nozzle_name: str, material_id: str) -> List[Dict[str, Any]]: registry = CuraApplication.getInstance().getContainerRegistry() - return registry.findContainersMetadata(definition = definition_id, variant = nozzle_name, material_id = material_id) + return registry.findContainersMetadata(definition = definition_id, variant = nozzle_name, material = material_id) ## Collects and returns all intent categories available for the given # parameters. Note that the 'default' category is always available.