mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:29:02 +08:00
Merge pull request #13471 from Ultimaker/CURA-9719
Add intent and quality fields to slice metadata
This commit is contained in:
commit
04ff78c704
@ -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…
x
Reference in New Issue
Block a user