From a1a2784ef9c998b0f88598e076cced3c575bc303 Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Tue, 4 Oct 2022 11:47:53 +0200 Subject: [PATCH] Add intent and quality fields to slice metadata CURA-9719 --- plugins/UFPWriter/UFPWriter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/UFPWriter/UFPWriter.py b/plugins/UFPWriter/UFPWriter.py index 49751e1a2a..53ee5ae1ff 100644 --- a/plugins/UFPWriter/UFPWriter.py +++ b/plugins/UFPWriter/UFPWriter.py @@ -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())