From 0956876fabb41e229f6abac7744935dba16ef825 Mon Sep 17 00:00:00 2001
From: Clemens Barth <barth@root-1.de>
Date: Sat, 13 Oct 2012 10:56:57 +0000
Subject: [PATCH] Recently, I suddenly had an error message always when adding
 a camera during import. I have no idea why that happened out of a sudden.
 Anyway, I removed this bug.

---
 io_mesh_pdb/__init__.py   | 2 +-
 io_mesh_pdb/import_pdb.py | 9 ++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/io_mesh_pdb/__init__.py b/io_mesh_pdb/__init__.py
index 2568ec7c5..206dd2187 100644
--- a/io_mesh_pdb/__init__.py
+++ b/io_mesh_pdb/__init__.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-10-13
 #
 #  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 a24d8aeb0..70795f6c1 100644
--- a/io_mesh_pdb/import_pdb.py
+++ b/io_mesh_pdb/import_pdb.py
@@ -25,10 +25,9 @@ from math import pi, cos, sin
 from mathutils import Vector, Matrix
 from copy import copy
 
-# These are variables, which contain the name of the PDB file and
-# the path of the PDB file.
-# They are used almost everywhere, which is the reason why they
-# should stay global. First, they are empty and get 'filled' directly
+# This variable contains the path of the PDB file.
+# It is used almost everywhere, which explains why it
+# should stay global. First, it is empty and gets 'filled' directly
 # after having chosen the PDB file (see 'class LoadPDB' further below).
 
 ATOM_PDB_FILEPATH = ""
@@ -1001,7 +1000,7 @@ def DEF_atom_pdb_main(use_mesh,Ball_azimuth,Ball_zenith,
 
         # Rotate the camera around its axis by 90° such that we have a nice
         # camera position and view onto the object.
-        bpy.ops.transform.rotate(value=(90.0*2*math.pi/360.0,),
+        bpy.ops.transform.rotate(value=(90.0*2*math.pi/360.0),
                                  axis=object_camera_vec,
                                  constraint_axis=(False, False, False),
                                  constraint_orientation='GLOBAL',
-- 
GitLab