diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-05-27 12:30:06 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-05-27 12:30:06 +0400 |
commit | b3b6179c6e6db043c6a5a7fce7cb3aaeba449670 (patch) | |
tree | 3da2b194487bfb274a97bbe5ba0c5482863b3ae2 /io_mesh_ply | |
parent | 251abfb89fcd17bf45c266d8a589a9a611940890 (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.py | 3 |
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 |