[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3075] trunk/py/scripts/addons/ io_mesh_pdb/import_pdb.py:

Clemens Barth barth at root-1.de
Fri Mar 9 18:03:16 CET 2012


Revision: 3075
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3075
Author:   blendphys
Date:     2012-03-09 17:03:04 +0000 (Fri, 09 Mar 2012)
Log Message:
-----------

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 

Modified Paths:
--------------
    trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py

Modified: trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2012-03-09 02:34:30 UTC (rev 3074)
+++ trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2012-03-09 17:03:04 UTC (rev 3075)
@@ -876,7 +876,9 @@
                         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



More information about the Bf-extensions-cvs mailing list