mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Introduce a quality_type metadata entry that can be used to distinguish qualities
Since we want the profile to be selected based on material and we have profiles like "ABS Normal" and "PLA Normal" we need some way to make sure we select the same. Contributes to CURA-2006
This commit is contained in:
parent
4a02a9d1e3
commit
b894e3888c
4 changed files with 4 additions and 1 deletions
|
@ -422,7 +422,7 @@ class ContainerManager(QObject):
|
|||
|
||||
new_quality_changes = user_container.duplicate(stack.getId() + "_" + unique_id, unique_name)
|
||||
new_quality_changes.setMetaDataEntry("type", "quality_changes")
|
||||
new_quality_changes.addMetaDataEntry("quality", quality_container.getId())
|
||||
new_quality_changes.addMetaDataEntry("quality", quality_container.getMetaDataEntry("quality_type"))
|
||||
|
||||
if not global_stack.getMetaDataEntry("has_machine_quality"):
|
||||
new_quality_changes.setDefinition(UM.Settings.ContainerRegistry.getInstance().findContainers(id = "fdmprinter")[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue