mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Store intent category in metadata of quality_changes as well
This is necessary in order to restore it properly. Contributes to issue CURA_6600.
This commit is contained in:
parent
f6089ed627
commit
2b96543cd3
6 changed files with 26 additions and 8 deletions
|
@ -131,6 +131,8 @@ class GCodeWriter(MeshWriter):
|
|||
container_with_profile.setName(quality_name)
|
||||
container_with_profile.setMetaDataEntry("type", "quality_changes")
|
||||
container_with_profile.setMetaDataEntry("quality_type", quality_type)
|
||||
if stack.getMetaDataEntry("position") is not None: # For extruder stacks, the quality changes should include an intent category.
|
||||
container_with_profile.setMetaDataEntry("intent_category", stack.intent.getMetaDataEntry("intent_category", "default"))
|
||||
container_with_profile.setDefinition(machine_definition_id_for_quality)
|
||||
|
||||
flat_global_container = self._createFlattenedContainerInstance(stack.userChanges, container_with_profile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue