mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 14:39:10 +08: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
@ -381,7 +381,8 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||||||
global_stack = Application.getInstance().getGlobalContainerStack()
|
global_stack = Application.getInstance().getGlobalContainerStack()
|
||||||
if global_stack is None:
|
if global_stack is None:
|
||||||
return 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)
|
profile.setDefinition(definition_id)
|
||||||
|
|
||||||
# Check to make sure the imported profile actually makes sense in context of the current configuration.
|
# Check to make sure the imported profile actually makes sense in context of the current configuration.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user