mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:09:00 +08: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
@ -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])
|
||||
|
@ -5,6 +5,7 @@ definition = fdmprinter
|
||||
|
||||
[metadata]
|
||||
type = quality
|
||||
quality_type = high
|
||||
weight = -3
|
||||
|
||||
[values]
|
||||
|
@ -5,6 +5,7 @@ definition = fdmprinter
|
||||
|
||||
[metadata]
|
||||
type = quality
|
||||
quality_type = low
|
||||
weight = -1
|
||||
|
||||
[values]
|
||||
|
@ -5,6 +5,7 @@ definition = fdmprinter
|
||||
|
||||
[metadata]
|
||||
type = quality
|
||||
quality_type = normal
|
||||
weight = -2
|
||||
|
||||
[values]
|
||||
|
Loading…
x
Reference in New Issue
Block a user