diff options
author | Clemens Barth <barth@root-1.de> | 2012-04-18 23:19:18 +0400 |
---|---|---|
committer | Clemens Barth <barth@root-1.de> | 2012-04-18 23:19:18 +0400 |
commit | c1421af477700431013c49c6e24b502fedd21c6b (patch) | |
tree | 6347e7c49f617d0295c46bfaaa17b36c72efc587 /io_mesh_pdb | |
parent | fe7a3619f542dd56891df962d724fcf9254880c9 (diff) |
The Atomic Blender panel is loaded correctly when a blend file is loaded.
Blendphys.
Diffstat (limited to 'io_mesh_pdb')
-rw-r--r-- | io_mesh_pdb/__init__.py | 5 | ||||
-rw-r--r-- | io_mesh_pdb/export_pdb.py | 2 | ||||
-rw-r--r-- | io_mesh_pdb/import_pdb.py | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/io_mesh_pdb/__init__.py b/io_mesh_pdb/__init__.py index 3a479dbd..883e9989 100644 --- a/io_mesh_pdb/__init__.py +++ b/io_mesh_pdb/__init__.py @@ -75,6 +75,11 @@ class CLASS_atom_pdb_panel(Panel): 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() diff --git a/io_mesh_pdb/export_pdb.py b/io_mesh_pdb/export_pdb.py index e4700361..ea4a761e 100644 --- a/io_mesh_pdb/export_pdb.py +++ b/io_mesh_pdb/export_pdb.py @@ -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 diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py index b4f52af5..e9decb0c 100644 --- a/io_mesh_pdb/import_pdb.py +++ b/io_mesh_pdb/import_pdb.py @@ -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 |