Skip to content

Commit 2155e8d

Browse files
committed
Fix IndexError in parse_vt
1 parent 2f18318 commit 2155e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywavefront/obj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def parse_vt(self):
183183

184184
# Since list() also consumes StopIteration we need to sanity check the line
185185
# to make sure the parser advances
186-
if self.values[0] == "vt":
186+
if self.values and self.values[0] == "vt":
187187
self.next_line()
188188

189189
def consume_texture_coordinates(self):

0 commit comments

Comments
 (0)