[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [862] trunk/py/scripts/addons/ io_mesh_stl/blender_utils.py: Fix #22907: STL export did not take object transformation into account.

Brecht Van Lommel brecht at blender.org
Wed Jul 28 13:53:04 CEST 2010


Revision: 862
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=862
Author:   blendix
Date:     2010-07-28 13:53:04 +0200 (Wed, 28 Jul 2010)

Log Message:
-----------
Fix #22907: STL export did not take object transformation into account.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_mesh_stl/blender_utils.py

Modified: trunk/py/scripts/addons/io_mesh_stl/blender_utils.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_stl/blender_utils.py	2010-07-28 00:25:37 UTC (rev 861)
+++ trunk/py/scripts/addons/io_mesh_stl/blender_utils.py	2010-07-28 11:53:04 UTC (rev 862)
@@ -46,5 +46,5 @@
             else:
                 yield list(face.verts)
 
-    return ([tuple(mesh.verts[index].co)
+    return ([tuple(ob.matrix_world * mesh.verts[index].co)
              for index in indexes] for indexes in iter_face_index())




More information about the Bf-extensions-cvs mailing list