[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3403] trunk/py/scripts/addons/ io_mesh_ply/export_ply.py: Fix [#31612] PLY exporter: data. tessfaces is empty.
Bastien Montagne
montagne29 at wanadoo.fr
Sun May 27 10:30:07 CEST 2012
Revision: 3403
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3403
Author: mont29
Date: 2012-05-27 08:30:06 +0000 (Sun, 27 May 2012)
Log Message:
-----------
Fix [#31612] PLY exporter: data.tessfaces is empty.
Note: there are other exporters with the same problem, will fix them as well.
Modified Paths:
--------------
trunk/py/scripts/addons/io_mesh_ply/export_ply.py
Modified: trunk/py/scripts/addons/io_mesh_ply/export_ply.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_ply/export_ply.py 2012-05-26 10:00:54 UTC (rev 3402)
+++ trunk/py/scripts/addons/io_mesh_ply/export_ply.py 2012-05-27 08:30:06 UTC (rev 3403)
@@ -65,6 +65,9 @@
# 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
More information about the Bf-extensions-cvs
mailing list