mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Use container tree instead of getMachineDefinitionIdForQualitySearch
It's in the metadata there, so use it. Contributes to issue CURA-6600.
This commit is contained in:
parent
5a7054ecc3
commit
6dd0333626
1 changed files with 2 additions and 1 deletions
|
@ -381,7 +381,8 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
global_stack = Application.getInstance().getGlobalContainerStack()
|
||||
if global_stack is None:
|
||||
return None
|
||||
definition_id = getMachineDefinitionIDForQualitySearch(global_stack.definition)
|
||||
machine_node = ContainerTree.getInstance().machines[global_stack.definition.getId()]
|
||||
definition_id = machine_node.quality_definition
|
||||
profile.setDefinition(definition_id)
|
||||
|
||||
# Check to make sure the imported profile actually makes sense in context of the current configuration.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue