From 3c31e5e33de45e42ada4b99bacfcf3d27c215773 Mon Sep 17 00:00:00 2001 From: Clemens Barth Date: Tue, 7 Feb 2012 20:37:16 +0000 Subject: 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 --- io_mesh_pdb/import_pdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'io_mesh_pdb/import_pdb.py') 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: -- cgit v1.2.3