Skip to content

Commit

Permalink
Update OBJ2ABC.py
Browse files Browse the repository at this point in the history
check for an empty split result.
  • Loading branch information
bhouston committed Jan 12, 2015
1 parent c94834e commit 2841ca4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Python/samples/OBJ2ABC.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def read_faces(self, splits):
def read(self, in_file):
for line in in_file:
sp = line.split()
if sp[0] == "#":
if len(sp) == 0:
// do nothing
elif sp[0] == "#":
pass #passing over a commented line
elif sp[0] == "v":
self.read_vertex(sp)
Expand Down

0 comments on commit 2841ca4

Please sign in to comment.