Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Barth <barth@root-1.de>2012-03-09 21:45:06 +0400
committerClemens Barth <barth@root-1.de>2012-03-09 21:45:06 +0400
commit77cc3c75a40e238144734c3142dadc3f09311bdb (patch)
treea757e9136c3c362ccb8d729bb1a01600ec1439c1 /io_mesh_pdb/import_pdb.py
parentfadd3b04fb7e0a702debf822c979f2e2bbd19a39 (diff)
Importer
======== + normalization ... Blendphys
Diffstat (limited to 'io_mesh_pdb/import_pdb.py')
-rw-r--r--io_mesh_pdb/import_pdb.py3
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