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

Clemens Barth barth at root-1.de
Wed Apr 18 21:19:18 CEST 2012


Revision: 3281
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3281
Author:   blendphys
Date:     2012-04-18 19:19:18 +0000 (Wed, 18 Apr 2012)
Log Message:
-----------

The Atomic Blender panel is loaded correctly when a blend file is loaded.

Blendphys.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_mesh_pdb/__init__.py
    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/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2012-04-18 19:16:42 UTC (rev 3280)
+++ trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2012-04-18 19:19:18 UTC (rev 3281)
@@ -75,6 +75,11 @@
 
     def draw(self, context):
         layout = self.layout
+
+        # This is for the case that a blend file is loaded. 
+        if len(context.scene.atom_pdb) == 0:
+            bpy.context.scene.atom_pdb.add()
+
         scn    = context.scene.atom_pdb[0]
 
         row = layout.row()

Modified: trunk/py/scripts/addons/io_mesh_pdb/export_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/export_pdb.py	2012-04-18 19:16:42 UTC (rev 3280)
+++ trunk/py/scripts/addons/io_mesh_pdb/export_pdb.py	2012-04-18 19:19:18 UTC (rev 3281)
@@ -25,7 +25,7 @@
 #
 #  Start of project              : 2011-08-31 by Clemens Barth
 #  First publication in Blender  : 2011-11-11
-#  Last modified                 : 2012-03-23
+#  Last modified                 : 2012-04-18
 #
 #  Acknowledgements: Thanks to ideasman, meta_androcto, truman, kilon,
 #  dairin0d, PKHG, Valter, etc

Modified: trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2012-04-18 19:16:42 UTC (rev 3280)
+++ trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2012-04-18 19:19:18 UTC (rev 3281)
@@ -25,7 +25,7 @@
 #
 #  Start of project              : 2011-08-31 by Clemens Barth
 #  First publication in Blender  : 2011-11-11
-#  Last modified                 : 2012-03-23
+#  Last modified                 : 2012-04-18
 #
 #  Acknowledgements: Thanks to ideasman, meta_androcto, truman, kilon,
 #  dairin0d, PKHG, Valter, etc



More information about the Bf-extensions-cvs mailing list