diff options
author | Clemens Barth <barth@root-1.de> | 2012-03-09 21:03:04 +0400 |
---|---|---|
committer | Clemens Barth <barth@root-1.de> | 2012-03-09 21:03:04 +0400 |
commit | 393fe8dcbef50becd59e5102591fed1d76eb3700 (patch) | |
tree | 0114f982cc858aca049f1fb9926564a4a55fbff1 /io_mesh_pdb/import_pdb.py | |
parent | b22f2c0259d71101eecb1611a3f8febe551241b4 (diff) |
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
Diffstat (limited to 'io_mesh_pdb/import_pdb.py')
-rw-r--r-- | io_mesh_pdb/import_pdb.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |