mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Move version upgrade for intents from 4.1-4.2 to 4.3-4.4
CURA-6599
This commit is contained in:
parent
f8472d6414
commit
e9862fb348
1022 changed files with 1174 additions and 1031 deletions
|
@ -308,18 +308,6 @@ class VersionUpgrade41to42(VersionUpgrade):
|
|||
|
||||
# Update version number.
|
||||
parser["metadata"]["setting_version"] = "8"
|
||||
parser["general"]["version"] = "5"
|
||||
|
||||
# We should only have 6 levels when we start.
|
||||
assert "7" not in parser["containers"]
|
||||
|
||||
# We added the intent container in Cura 4.2. This means that all other containers move one step down.
|
||||
parser["containers"]["7"] = parser["containers"]["6"]
|
||||
parser["containers"]["6"] = parser["containers"]["5"]
|
||||
parser["containers"]["5"] = parser["containers"]["4"]
|
||||
parser["containers"]["4"] = parser["containers"]["3"]
|
||||
parser["containers"]["3"] = parser["containers"]["2"]
|
||||
parser["containers"]["2"] = "empty_intent"
|
||||
|
||||
# Change renamed profiles.
|
||||
if "containers" in parser:
|
||||
|
@ -347,4 +335,4 @@ class VersionUpgrade41to42(VersionUpgrade):
|
|||
|
||||
result = io.StringIO()
|
||||
parser.write(result)
|
||||
return [filename], [result.getvalue()]
|
||||
return [filename], [result.getvalue()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue