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:
Diffstat (limited to 'io_mesh_ply')
-rw-r--r--io_mesh_ply/export_ply.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py
index 0dd0b39d..2b58186b 100644
--- a/io_mesh_ply/export_ply.py
+++ b/io_mesh_ply/export_ply.py
@@ -66,7 +66,8 @@ def save(operator,
# mesh.transform(obj.matrix_world) # XXX
# Be sure tessface & co are available!
- mesh.calc_tessface()
+ if not mesh.tessfaces and mesh.polygons:
+ mesh.calc_tessface()
has_uv = (len(mesh.tessface_uv_textures) > 0)
has_uv_vertex = (len(mesh.sticky) > 0)