diff options
author | Clemens Barth <barth@root-1.de> | 2012-10-13 14:56:57 +0400 |
---|---|---|
committer | Clemens Barth <barth@root-1.de> | 2012-10-13 14:56:57 +0400 |
commit | 0956876fabb41e229f6abac7744935dba16ef825 (patch) | |
tree | d2cacbd90e5722538d4697e0e9f949e8f6adbcc6 /io_mesh_pdb | |
parent | a82bcb38c40fbeeea3715341d07ace5bb56890ed (diff) |
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.
Diffstat (limited to 'io_mesh_pdb')
-rw-r--r-- | io_mesh_pdb/__init__.py | 2 | ||||
-rw-r--r-- | 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 2568ec7c..206dd218 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 a24d8aeb..70795f6c 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', |