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:
authorBastien Montagne <montagne29@wanadoo.fr>2012-05-27 12:30:06 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-05-27 12:30:06 +0400
commitb3b6179c6e6db043c6a5a7fce7cb3aaeba449670 (patch)
tree3da2b194487bfb274a97bbe5ba0c5482863b3ae2 /io_mesh_ply
parent251abfb89fcd17bf45c266d8a589a9a611940890 (diff)
Fix [#31612] PLY exporter: data.tessfaces is empty.
Note: there are other exporters with the same problem, will fix them as well.
Diffstat (limited to 'io_mesh_ply')
-rw-r--r--io_mesh_ply/export_ply.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py
index cb981a13..0dd0b39d 100644
--- a/io_mesh_ply/export_ply.py
+++ b/io_mesh_ply/export_ply.py
@@ -65,6 +65,9 @@ def save(operator,
# mesh.transform(obj.matrix_world) # XXX
+ # Be sure tessface & co are available!
+ mesh.calc_tessface()
+
has_uv = (len(mesh.tessface_uv_textures) > 0)
has_uv_vertex = (len(mesh.sticky) > 0)
has_vcol = len(mesh.tessface_vertex_colors) > 0