Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io_mesh_pdb/__init__.py5
-rw-r--r--io_mesh_pdb/export_pdb.py2
-rw-r--r--io_mesh_pdb/import_pdb.py2
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