mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 05:48:59 +08:00
Ensure that quality_changes get their intent_category set in upgrade
CURA-6599
This commit is contained in:
parent
958d3698db
commit
06103b98d5
@ -37,6 +37,10 @@ class VersionUpgrade43to44(VersionUpgrade):
|
||||
# Update version number.
|
||||
parser["metadata"]["setting_version"] = "10"
|
||||
|
||||
# Intent profiles were added, so the quality changes should match with no intent (so "default")
|
||||
if parser["metadata"].get("type", "") == "quality_changes":
|
||||
parser["metadata"]["intent_category"] = "default"
|
||||
|
||||
result = io.StringIO()
|
||||
parser.write(result)
|
||||
return [filename], [result.getvalue()]
|
||||
|
Loading…
x
Reference in New Issue
Block a user