diff options
-rw-r--r-- | io_mesh_pdb/import_pdb.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py index cf559d91..41bd939c 100644 --- a/io_mesh_pdb/import_pdb.py +++ b/io_mesh_pdb/import_pdb.py @@ -1238,7 +1238,8 @@ def DEF_atom_pdb_main(use_mesh,Ball_azimuth,Ball_zenith, material = all_atoms[stick.atom2-1].material sticks_list.append([name, location, dv, material]) - sticks_all_lists.append(sticks_list) + if sticks_list != []: + sticks_all_lists.append(sticks_list) else: sticks_list = [] for stick in all_sticks: |