From 393fe8dcbef50becd59e5102591fed1d76eb3700 Mon Sep 17 00:00:00 2001 From: Clemens Barth Date: Fri, 9 Mar 2012 17:03:04 +0000 Subject: Importer ======== I removed a small bug: Double or triple bonds were not shown for atoms, which have only one neighbour. BTW: I updated the wiki. Blendphys --- io_mesh_pdb/import_pdb.py | 4 +++- 1 file changed, 3 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 9b90d78b..420b5161 100644 --- a/io_mesh_pdb/import_pdb.py +++ b/io_mesh_pdb/import_pdb.py @@ -876,7 +876,9 @@ def DEF_atom_pdb_main(use_mesh,Ball_azimuth,Ball_zenith, dist_n = dist_n.cross(plane_n) dist_n = dist_n / dist_n.length else: - dist_n = Vector((0,0,0)) + dist_n = (all_atoms[atom1-1].location + - all_atoms[atom2-1].location) + dist_n = Vector((dist_n[1],dist_n[0],0)) elif number > 3: number = 1 dist_n = None -- cgit v1.2.3