Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-07-28 15:53:04 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-07-28 15:53:04 +0400
commit38bf4b71cc1c53f2c0daf01ff270c56434aa1c65 (patch)
treea66bf8b9ce42566340518fde59aeff63e027473c /io_mesh_stl
parent95223f5f8fe8cd04f0165167ee4053c6c4a3d860 (diff)
Fix #22907: STL export did not take object transformation into account.
Diffstat (limited to 'io_mesh_stl')
-rw-r--r--io_mesh_stl/blender_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py
index 1bade61d..4bf9e8fc 100644
--- a/io_mesh_stl/blender_utils.py
+++ b/io_mesh_stl/blender_utils.py
@@ -46,5 +46,5 @@ def faces_from_mesh(ob, apply_modifier=False, triangulate=True):
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())