mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Fix extraneous empty ("") container being added
This commit is contained in:
parent
2c79efd8bd
commit
dcae7575e4
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue