diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-14 09:15:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-14 09:15:39 +0400 |
commit | e7e74d4d63aa6c574d5db851f4152fbd2925f373 (patch) | |
tree | d3db17fdaca1bc3f4f7b7365668a0a29029eeb5b /io_scene_obj | |
parent | 510bd9c6d95fe5fe670c8e39f79ddf75cac8b121 (diff) |
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.
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/export_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index a7d4d521..d138889d 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -628,7 +628,7 @@ def write_file(filepath, objects, scene, 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) |