diff options
Diffstat (limited to 'io_mesh_pdb/import_pdb.py')
-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 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 |