diff --git a/io_mesh_pdb/__init__.py b/io_mesh_pdb/__init__.py index 2568ec7c59f0fca6334d45d16d464a73f45d0d44..206dd2187bc1ea91145a13009646a85baf49d5e0 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 a24d8aeb03477142b384edfaed8caabc0c6f4c5b..70795f6c1b0616da1b2ef728592f4ed5dfcfa6b1 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',