mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Set intent category of quality changes group correctly
If any profile has a different intent than default, the entire group becomes that intent. There can only be one intent that's different from default per group. Contributes to issue CURA-6600.
This commit is contained in:
parent
1b9e710f72
commit
9a5d45282a
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ class MachineNode(ContainerNode):
|
|||
name = quality_changes["name"]
|
||||
if name not in groups_by_name:
|
||||
groups_by_name[name] = QualityChangesGroup(name, quality_type = quality_changes["quality_type"], intent_category = quality_changes.get("intent_category", "default"))
|
||||
elif groups_by_name[name].intent_category == "default": # Intent category should be stored as "default" if everything is default or as the intent if any of the extruder have an actual intent.
|
||||
groups_by_name[name].intent_category = quality_changes.get("intent_category", "default")
|
||||
if "position" in quality_changes: # An extruder profile.
|
||||
groups_by_name[name].metadata_per_extruder[int(quality_changes["position"])] = quality_changes
|
||||
else: # Global profile.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue