Ignore empty string
This commit is contained in:
parent
076cffff83
commit
685b5e6f59
|
@ -97,6 +97,7 @@ 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])):
|
||||||
|
if splits[i][j] is not '':
|
||||||
splits[i][j] = str(int(splits[i][j]) - 1)
|
splits[i][j] = str(int(splits[i][j]) - 1)
|
||||||
|
|
||||||
self.addFace(Face().from_array(splits))
|
self.addFace(Face().from_array(splits))
|
||||||
|
|
Loading…
Reference in New Issue