From 77cc3c75a40e238144734c3142dadc3f09311bdb Mon Sep 17 00:00:00 2001 From: Clemens Barth Date: Fri, 9 Mar 2012 17:45:06 +0000 Subject: Importer ======== + normalization ... Blendphys --- io_mesh_pdb/import_pdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'io_mesh_pdb') diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py index 2a3efefc..726eb7ea 100644 --- a/io_mesh_pdb/import_pdb.py +++ b/io_mesh_pdb/import_pdb.py @@ -878,7 +878,8 @@ def DEF_atom_pdb_main(use_mesh,Ball_azimuth,Ball_zenith, else: dist_n = (all_atoms[atom1-1].location - all_atoms[atom2-1].location) - dist_n = Vector((dist_n[1],-dist_n[0],0)) + dist_n = Vector((dist_n[1],-dist_n[0],0)) + dist_n = dist_n / dist_n.length elif number > 3: number = 1 dist_n = None -- cgit v1.2.3