mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add intent and quality fields to slice metadata
CURA-9719
This commit is contained in:
parent
d0ddb5fafe
commit
a1a2784ef9
1 changed files with 4 additions and 1 deletions
|
@ -213,6 +213,7 @@ class UFPWriter(MeshWriter):
|
|||
def _getSliceMetadata(self) -> Dict[str, Dict[str, Dict[str, str]]]:
|
||||
"""Get all changed settings and all settings. For each extruder and the global stack"""
|
||||
print_information = CuraApplication.getInstance().getPrintInformation()
|
||||
machine_manager = CuraApplication.getInstance().getMachineManager()
|
||||
settings = {
|
||||
"material": {
|
||||
"length": print_information.materialLengths,
|
||||
|
@ -222,7 +223,9 @@ class UFPWriter(MeshWriter):
|
|||
"global": {
|
||||
"changes": {},
|
||||
"all_settings": {},
|
||||
}
|
||||
},
|
||||
"intent": machine_manager.activeIntentCategory,
|
||||
"quality": machine_manager.activeQualityOrQualityChangesName,
|
||||
}
|
||||
|
||||
global_stack = cast(GlobalStack, Application.getInstance().getGlobalContainerStack())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue