From e7e74d4d63aa6c574d5db851f4152fbd2925f373 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Fri, 14 Jun 2013 05:15:39 +0000
Subject: [PATCH] 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.

---
 io_scene_obj/export_obj.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index a7d4d5217..d138889d1 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)
-- 
GitLab