mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix extraneous empty ("") container being added
This commit is contained in:
parent
2c79efd8bd
commit
dcae7575e4
@ -48,6 +48,8 @@ class VersionUpgrade22to24(VersionUpgrade):
|
||||
# Change the name of variant and insert empty_variant into the stack.
|
||||
new_container_list = []
|
||||
for item in container_list:
|
||||
if not item: # the last item may be an empty string
|
||||
continue
|
||||
if item == variant_name:
|
||||
new_container_list.append(config_name)
|
||||
new_container_list.append("empty_variant")
|
||||
|
Loading…
x
Reference in New Issue
Block a user