Skip to content

Commit

Permalink
Merge e648eae into 2cae312
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Roth committed Feb 24, 2020
2 parents 2cae312 + e648eae commit c6978e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trimesh/exchange/obj.py
Expand Up @@ -791,6 +791,10 @@ def export_obj(mesh,
row_delim='\nf ',
value_format=face_format))

# add object name if found in metadata
if 'name' in mesh.metadata:
export.appendleft('o {}'.format(mesh.metadata['name']))

# add a created-with header to the top of the file
export.appendleft('# https://github.com/mikedh/trimesh')

Expand Down

0 comments on commit c6978e4

Please sign in to comment.