From 510bd9c6d95fe5fe670c8e39f79ddf75cac8b121 Mon Sep 17 00:00:00 2001
From: Clemens Barth <barth@root-1.de>
Date: Thu, 13 Jun 2013 08:54:36 +0000
Subject: [PATCH] Importing a PDB structure where the atoms are shown as mesh
 balls created an error. This bug was fixed.

Blendphys.
---
 io_mesh_pdb/import_pdb.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py
index 37109cacc..5146663d2 100644
--- a/io_mesh_pdb/import_pdb.py
+++ b/io_mesh_pdb/import_pdb.py
@@ -621,13 +621,15 @@ def camera_light_source(use_camera,
         bpy.context.scene.world.light_settings.ao_factor = 0.2
 
 
-# Function, which draws the atoms of one type (balls). this is one
+# Function, which draws the atoms of one type (balls). This is one
 # dupliverts structure then. 
 # Return: the dupliverts structure
 def draw_atoms_one_type(draw_all_atoms_type, 
-                         Ball_type,
-                         Ball_radius_factor,
-                         object_center_vec):
+                        Ball_type,
+                        Ball_azimuth,
+                        Ball_zenith,
+                        Ball_radius_factor,
+                        object_center_vec):
 
     # Create first the vertices composed of the coordinates of all
     # atoms of one type
@@ -1318,6 +1320,8 @@ def import_pdb(Ball_type,
 
         atom_mesh = draw_atoms_one_type(draw_all_atoms_type, 
                                         Ball_type,
+                                        Ball_azimuth,
+                                        Ball_zenith,
                                         Ball_radius_factor,
                                         object_center_vec)
         atom_object_list.append(atom_mesh)
-- 
GitLab