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 13:38:39 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-05-27 13:38:39 +0400
commite8e36e184bf3c3f21036a4f6099cbabfc3470ceb (patch)
tree1e5229741096f9e2c399e1f993e122ab0dbc8336 /io_mesh_ply
parentb3b6179c6e6db043c6a5a7fce7cb3aaeba449670 (diff)
Turned out only raw exporter had same bug...
Also, only calc_tessface() when needed, and use ExportHelper for RAW!
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)