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

Clemens Barth barth at root-1.de
Mon Feb 27 00:10:10 CET 2012


Revision: 3023
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3023
Author:   blendphys
Date:     2012-02-26 23:10:02 +0000 (Sun, 26 Feb 2012)
Log Message:
-----------

- Changed a comment
- Removed a bug in the exporter

Blendphys 

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

Modified: trunk/py/scripts/addons/io_mesh_pdb/export_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/export_pdb.py	2012-02-26 22:22:59 UTC (rev 3022)
+++ trunk/py/scripts/addons/io_mesh_pdb/export_pdb.py	2012-02-26 23:10:02 UTC (rev 3023)
@@ -25,7 +25,7 @@
 #
 #  Start of project              : 2011-08-31 by Clemens Barth
 #  First publication in Blender  : 2011-11-11
-#  Last modified                 : 2012-02-07
+#  Last modified                 : 2012-02-27
 #
 #  Acknowledgements: Thanks to ideasman, meta_androcto, truman, kilon,
 #  dairin0d, PKHG, Valter, etc
@@ -70,7 +70,7 @@
             continue
             
         if obj.type != "SURFACE" and obj.type != "MESH":
-            continue
+            continue 
         
         for element in import_pdb.ATOM_PDB_ELEMENTS:
             if element.name in obj.name:
@@ -86,7 +86,8 @@
                                                        obj.location+vertex.co))
                         
                 else:
-                    list_atoms.append(CLASS_atom_pdb_atoms_export(
+                    if not obj.parent:
+                        list_atoms.append(CLASS_atom_pdb_atoms_export(
                                                        name,
                                                        obj.location))
                                                        

Modified: trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2012-02-26 22:22:59 UTC (rev 3022)
+++ trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2012-02-26 23:10:02 UTC (rev 3023)
@@ -25,7 +25,7 @@
 #
 #  Start of project              : 2011-08-31 by Clemens Barth
 #  First publication in Blender  : 2011-11-11
-#  Last modified                 : 2012-02-07
+#  Last modified                 : 2012-02-27
 #
 #  Acknowledgements: Thanks to ideasman, meta_androcto, truman, kilon,
 #  dairin0d, PKHG, Valter, etc



More information about the Bf-extensions-cvs mailing list