[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3851] contrib/py/scripts/addons/ io_mesh_xyz: Also here: same problem with the camera.

Clemens Barth barth at root-1.de
Sat Oct 13 12:58:16 CEST 2012


Revision: 3851
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3851
Author:   blendphys
Date:     2012-10-13 10:58:16 +0000 (Sat, 13 Oct 2012)
Log Message:
-----------
Also here: same problem with the camera. Bug fixed.

Modified Paths:
--------------
    contrib/py/scripts/addons/io_mesh_xyz/__init__.py
    contrib/py/scripts/addons/io_mesh_xyz/import_xyz.py

Modified: contrib/py/scripts/addons/io_mesh_xyz/__init__.py
===================================================================
--- contrib/py/scripts/addons/io_mesh_xyz/__init__.py	2012-10-13 10:56:57 UTC (rev 3850)
+++ contrib/py/scripts/addons/io_mesh_xyz/__init__.py	2012-10-13 10:58:16 UTC (rev 3851)
@@ -25,7 +25,7 @@
 #
 #  Start of project              : 2011-12-01 by Clemens Barth
 #  First publication in Blender  : 2011-12-18
-#  Last modified                 : 2012-06-07
+#  Last modified                 : 2012-10-13
 #
 #  Acknowledgements: Thanks to ideasman, meta_androcto, truman, kilon,
 #  dairin0d, PKHG, Valter, etc

Modified: contrib/py/scripts/addons/io_mesh_xyz/import_xyz.py
===================================================================
--- contrib/py/scripts/addons/io_mesh_xyz/import_xyz.py	2012-10-13 10:56:57 UTC (rev 3850)
+++ contrib/py/scripts/addons/io_mesh_xyz/import_xyz.py	2012-10-13 10:58:16 UTC (rev 3851)
@@ -23,10 +23,9 @@
 from math import pi, cos, sin
 from mathutils import Vector, Matrix
 
-# These are variables, which contain the name of the XYZ file and
-# the path of the XYZ 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 XYZ 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 XYZ file (see 'class LoadXYZ' further below).
 
 ATOM_XYZ_FILEPATH = ""
@@ -755,7 +754,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