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/import_pdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py
index cf559d91..41bd939c 100644
--- a/io_mesh_pdb/import_pdb.py
+++ b/io_mesh_pdb/import_pdb.py
@@ -1238,7 +1238,8 @@ def DEF_atom_pdb_main(use_mesh,Ball_azimuth,Ball_zenith,
material = all_atoms[stick.atom2-1].material
sticks_list.append([name, location, dv, material])
- sticks_all_lists.append(sticks_list)
+ if sticks_list != []:
+ sticks_all_lists.append(sticks_list)
else:
sticks_list = []
for stick in all_sticks: