From b3b6179c6e6db043c6a5a7fce7cb3aaeba449670 Mon Sep 17 00:00:00 2001 From: Bastien Montagne <montagne29@wanadoo.fr> Date: Sun, 27 May 2012 08:30:06 +0000 Subject: [PATCH] Fix [#31612] PLY exporter: data.tessfaces is empty. Note: there are other exporters with the same problem, will fix them as well. --- io_mesh_ply/export_ply.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py index cb981a131..0dd0b39d0 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 -- GitLab