Skip to content
Snippets Groups Projects
Commit b3b6179c authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Fix [#31612] PLY exporter: data.tessfaces is empty.

Note: there are other exporters with the same problem, will fix them as well.
parent 251abfb8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment