mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08: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
@ -54,7 +54,8 @@ class VersionUpgrade43to44(VersionUpgrade):
|
||||
parser["metadata"]["setting_version"] = "10"
|
||||
|
||||
# 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.
|
||||
parser["containers"]["7"] = parser["containers"]["6"]
|
||||
@ -66,4 +67,4 @@ class VersionUpgrade43to44(VersionUpgrade):
|
||||
|
||||
result = io.StringIO()
|
||||
parser.write(result)
|
||||
return [filename], [result.getvalue()]
|
||||
return [filename], [result.getvalue()]
|
||||
|
Loading…
x
Reference in New Issue
Block a user