mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Don't assert if there are already 7 containers in stack
CURA-6599 Co-Authored-By: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
This commit is contained in:
parent
06103b98d5
commit
febe953226
1 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,8 @@ class VersionUpgrade43to44(VersionUpgrade):
|
||||||
parser["metadata"]["setting_version"] = "10"
|
parser["metadata"]["setting_version"] = "10"
|
||||||
|
|
||||||
# We should only have 6 levels when we start.
|
# We should only have 6 levels when we start.
|
||||||
assert "7" not in parser["containers"]
|
if "7" in parser["containers"]:
|
||||||
|
return ([], [])
|
||||||
|
|
||||||
# We added the intent container in Cura 4.4. This means that all other containers move one step down.
|
# We added the intent container in Cura 4.4. This means that all other containers move one step down.
|
||||||
parser["containers"]["7"] = parser["containers"]["6"]
|
parser["containers"]["7"] = parser["containers"]["6"]
|
||||||
|
@ -66,4 +67,4 @@ class VersionUpgrade43to44(VersionUpgrade):
|
||||||
|
|
||||||
result = io.StringIO()
|
result = io.StringIO()
|
||||||
parser.write(result)
|
parser.write(result)
|
||||||
return [filename], [result.getvalue()]
|
return [filename], [result.getvalue()]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue