Skip to content
Snippets Groups Projects
Commit e7e74d4d authored by Campbell Barton's avatar Campbell Barton
Browse files

correct exporing of loose edges, obj spec defines faces as needing at least 3...

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.
parent 510bd9c6
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment