[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4575] trunk/py/scripts/addons/ io_scene_obj/export_obj.py: correct exporing of loose edges, obj spec defines faces as needing at least 3 verts ( even though 2 vertex faces are in fact quite common).
Campbell Barton
ideasman42 at gmail.com
Fri Jun 14 07:15:39 CEST 2013
Revision: 4575
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4575
Author: campbellbarton
Date: 2013-06-14 05:15:39 +0000 (Fri, 14 Jun 2013)
Log Message:
-----------
correct exporing of loose edges, obj spec defines faces as needing at least 3 verts (even though 2 vertex faces are in fact quite common).
now export these as lines.
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_obj/export_obj.py
Modified: trunk/py/scripts/addons/io_scene_obj/export_obj.py
===================================================================
--- trunk/py/scripts/addons/io_scene_obj/export_obj.py 2013-06-13 08:54:36 UTC (rev 4574)
+++ trunk/py/scripts/addons/io_scene_obj/export_obj.py 2013-06-14 05:15:39 UTC (rev 4575)
@@ -628,7 +628,7 @@
if EXPORT_EDGES:
for ed in edges:
if ed.is_loose:
- fw('f %d %d\n' % (ed.vertices[0] + totverts, ed.vertices[1] + totverts))
+ fw('l %d %d\n' % (ed.vertices[0] + totverts, ed.vertices[1] + totverts))
# Make the indices global rather then per mesh
totverts += len(me_verts)
More information about the Bf-extensions-cvs
mailing list