Skip to content
Snippets Groups Projects
Commit c1421af4 authored by Clemens Barth's avatar Clemens Barth
Browse files

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

Blendphys.
parent fe7a3619
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment