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

Clemens Barth barth at root-1.de
Tue Feb 7 21:37:24 CET 2012


Revision: 2972
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2972
Author:   blendphys
Date:     2012-02-07 20:37:16 +0000 (Tue, 07 Feb 2012)
Log Message:
-----------

Dear all.

Bug: The script crashed when sticks with the colors of atoms
were drawn in the presence of TER lines in the PDB file. 
This bug has been removed.

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-02-07 11:15:05 UTC (rev 2971)
+++ trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2012-02-07 20:37:16 UTC (rev 2972)
@@ -1238,7 +1238,8 @@
                             material = all_atoms[stick.atom2-1].material
                             sticks_list.append([name, location, dv, material])
                               
-                sticks_all_lists.append(sticks_list)
+                if sticks_list != []:       
+                    sticks_all_lists.append(sticks_list)
         else:
             sticks_list = []
             for stick in all_sticks:



More information about the Bf-extensions-cvs mailing list