1
0
Fork 0
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:
Miloslav Ciz 2021-08-01 14:13:16 -05:00
parent f8b57a57a6
commit 6c5bebd80b

View file

@ -99,7 +99,10 @@ for line in objFile:
for i in indices:
components = i.split("/")
t.append(int(components[0]) - 1)
try:
u.append(int(components[1]) - 1)
except Exception as e:
u.append(int(components[2]) - 1)
triangles.append(t)
triangleUVs.append(u)