Skip to content

Commit

Permalink
correct exporing of loose edges, obj spec defines faces as needing at…
Browse files Browse the repository at this point in the history
… least 3 verts (even though 2 vertex faces are in fact quite common).

now export these as lines.
  • Loading branch information
ideasman42 committed Jun 14, 2013
1 parent 510bd9c commit e7e74d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_scene_obj/export_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def findVertexGroupName(face, vWeightMap):
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)
Expand Down

0 comments on commit e7e74d4

Please sign in to comment.