Ignore empty string

This commit is contained in:
Thomas FORGIONE 2016-11-21 15:30:05 +01:00
parent 076cffff83
commit 685b5e6f59
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ class OBJParser(ModelParser):
for i in range(len(splits)): for i in range(len(splits)):
for j in range(len(splits[i])): for j in range(len(splits[i])):
splits[i][j] = str(int(splits[i][j]) - 1) if splits[i][j] is not '':
splits[i][j] = str(int(splits[i][j]) - 1)
self.addFace(Face().from_array(splits)) self.addFace(Face().from_array(splits))