diff options
author | Clemens Barth <barth@root-1.de> | 2012-02-08 00:37:16 +0400 |
---|---|---|
committer | Clemens Barth <barth@root-1.de> | 2012-02-08 00:37:16 +0400 |
commit | 3c31e5e33de45e42ada4b99bacfcf3d27c215773 (patch) | |
tree | ac4df3a44b9fd3e9e72a5dbff2b395acb819d1d8 /io_mesh_pdb | |
parent | f4ba6daf59978261b35206dbad0bd6cbced9aad6 (diff) |
Dear all.
Bug: The script crashed when sticks with the colors of atoms
were drawn in the presence of TER lines in the PDB file.
This bug has been removed.
Blendphys
Diffstat (limited to 'io_mesh_pdb')
-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: |