mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
Filtering containers now also takes quality_definition into account
CURA-1780
This commit is contained in:
parent
8d6f7c06c1
commit
570843bbb0
1 changed files with 4 additions and 1 deletions
|
@ -586,6 +586,7 @@ class ContainerManager(QObject):
|
||||||
new_container = container.duplicate(self._createUniqueId(stack_id, new_name), new_name)
|
new_container = container.duplicate(self._createUniqueId(stack_id, new_name), new_name)
|
||||||
self._container_registry.addContainer(new_container)
|
self._container_registry.addContainer(new_container)
|
||||||
else:
|
else:
|
||||||
|
UM.Logger.log("w", "Unable to duplicate profile. It has the wrong type.")
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
return new_name
|
return new_name
|
||||||
|
@ -688,7 +689,9 @@ class ContainerManager(QObject):
|
||||||
filter_by_material = False
|
filter_by_material = False
|
||||||
|
|
||||||
if global_stack.getMetaDataEntry("has_machine_quality"):
|
if global_stack.getMetaDataEntry("has_machine_quality"):
|
||||||
criteria["definition"] = global_stack.getBottom().getId()
|
definition = global_stack.getBottom()
|
||||||
|
definition_id = definition.getMetaDataEntry("quality_definition", definition.getId())
|
||||||
|
criteria["definition"] = definition_id
|
||||||
|
|
||||||
filter_by_material = global_stack.getMetaDataEntry("has_materials")
|
filter_by_material = global_stack.getMetaDataEntry("has_materials")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue