-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CURA-9224] Approver settings json #13209
Conversation
Change default -> all_settings. This better reflects the purpose of the list. CURA-9224
It didn't really belong in the stack builder, as it's not a containerstack CURA-9224
…er/Cura into CURA-9224_approver_settings_json
This breaks profiles having
|
@Joeydelarago diff --git a/plugins/UFPWriter/UFPWriter.py b/plugins/UFPWriter/UFPWriter.py
index 49751e1a2a..aa63eb6d2e 100644
--- a/plugins/UFPWriter/UFPWriter.py
+++ b/plugins/UFPWriter/UFPWriter.py
@@ -230,11 +230,11 @@ class UFPWriter(MeshWriter):
# Add global user or quality changes
global_flattened_changes = InstanceContainer.createMergedInstanceContainer(global_stack.userChanges, global_stack.qualityChanges)
for setting in global_flattened_changes.getAllKeys():
- settings["global"]["changes"][setting] = global_flattened_changes.getProperty(setting, "value")
+ settings["global"]["changes"][setting] = str(global_flattened_changes.getProperty(setting, "value"))
# Get global all settings values without user or quality changes
for setting in global_stack.getAllKeys():
- settings["global"]["all_settings"][setting] = global_stack.getProperty(setting, "value")
+ settings["global"]["all_settings"][setting] = str(global_stack.getProperty(setting, "value"))
for i, extruder in enumerate(global_stack.extruderList):
# Add extruder fields to settings dictionary
@@ -246,10 +246,10 @@ class UFPWriter(MeshWriter):
# Add extruder user or quality changes
extruder_flattened_changes = InstanceContainer.createMergedInstanceContainer(extruder.userChanges, extruder.qualityChanges)
for setting in extruder_flattened_changes.getAllKeys():
- settings[f"extruder_{i}"]["changes"][setting] = extruder_flattened_changes.getProperty(setting, "value")
+ settings[f"extruder_{i}"]["changes"][setting] = str(extruder_flattened_changes.getProperty(setting, "value"))
# Get extruder all settings values without user or quality changes
for setting in extruder.getAllKeys():
- settings[f"extruder_{i}"]["all_settings"][setting] = extruder.getProperty(setting, "value")
+ settings[f"extruder_{i}"]["all_settings"][setting] = str(extruder.getProperty(setting, "value"))
return settings |
@nallath I see that you're about to ship 5.2. The issue with this PR is still present on the pre-release branch. To trigger it, reset any setting to its computed value, then save as UFP. I could make a PR, but the fix above is probably not what you want, it outputs the formulas rather than the computed values. |
Add settings to ufp files so that changes in settings can be reviewed on Digital Factory.