From 77cc3c75a40e238144734c3142dadc3f09311bdb Mon Sep 17 00:00:00 2001
From: Clemens Barth <barth@root-1.de>
Date: Fri, 9 Mar 2012 17:45:06 +0000
Subject: [PATCH] Importer ========

+ normalization ...

Blendphys
---
 io_mesh_pdb/import_pdb.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py
index 2a3efefc4..726eb7eae 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
-- 
GitLab