mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-22 20:49:58 +01:00
Fix python tool
This commit is contained in:
parent
f8b57a57a6
commit
6c5bebd80b
1 changed files with 4 additions and 1 deletions
|
@ -99,7 +99,10 @@ for line in objFile:
|
||||||
for i in indices:
|
for i in indices:
|
||||||
components = i.split("/")
|
components = i.split("/")
|
||||||
t.append(int(components[0]) - 1)
|
t.append(int(components[0]) - 1)
|
||||||
u.append(int(components[1]) - 1)
|
try:
|
||||||
|
u.append(int(components[1]) - 1)
|
||||||
|
except Exception as e:
|
||||||
|
u.append(int(components[2]) - 1)
|
||||||
|
|
||||||
triangles.append(t)
|
triangles.append(t)
|
||||||
triangleUVs.append(u)
|
triangleUVs.append(u)
|
||||||
|
|
Loading…
Reference in a new issue