mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-04 09:45:09 +08:00
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.
This commit is contained in:
parent
c75b83be21
commit
951b91e3d8
@ -43,7 +43,7 @@ class IntentManager(QObject):
|
|||||||
# an empty list if nothing was found.
|
# an empty list if nothing was found.
|
||||||
def intentMetadatas(self, definition_id: str, nozzle_name: str, material_id: str) -> List[Dict[str, Any]]:
|
def intentMetadatas(self, definition_id: str, nozzle_name: str, material_id: str) -> List[Dict[str, Any]]:
|
||||||
registry = cura.CuraApplication.CuraApplication.getInstance().getContainerRegistry()
|
registry = cura.CuraApplication.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
|
## Collects and returns all intent categories available for the given
|
||||||
# parameters. Note that the 'default' category is always available.
|
# parameters. Note that the 'default' category is always available.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user