[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3850] trunk/py/scripts/addons/ io_mesh_pdb: Recently, I suddenly had an error message always when adding a camera during
Clemens Barth
barth at root-1.de
Sat Oct 13 12:56:59 CEST 2012
Revision: 3850
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3850
Author: blendphys
Date: 2012-10-13 10:56:57 +0000 (Sat, 13 Oct 2012)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/py/scripts/addons/io_mesh_pdb/__init__.py
trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
Modified: trunk/py/scripts/addons/io_mesh_pdb/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/__init__.py 2012-10-13 09:29:09 UTC (rev 3849)
+++ trunk/py/scripts/addons/io_mesh_pdb/__init__.py 2012-10-13 10:56:57 UTC (rev 3850)
@@ -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
Modified: trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py 2012-10-13 09:29:09 UTC (rev 3849)
+++ trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py 2012-10-13 10:56:57 UTC (rev 3850)
@@ -25,10 +25,9 @@
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 @@
# 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',
More information about the Bf-extensions-cvs
mailing list