Fix for triangles being effectively reversed now.

master
TigerKat 4 years ago
parent 7d64e65e7c
commit 9c6134d911

@ -94,6 +94,7 @@ def convert_mesh(geo_model, mesh, obj):
print("i: %s f_verts: %s uv: %s" % (i, repr(f_verts), repr(uv))) print("i: %s f_verts: %s uv: %s" % (i, repr(f_verts), repr(uv)))
gv = GeoVertex(v.co, v.normal, uv[i], weights) gv = GeoVertex(v.co, v.normal, uv[i], weights)
geoverts.append(gv) geoverts.append(gv)
geoverts.reverse()
geomesh.addFace(geoverts, texture_name) geomesh.addFace(geoverts, texture_name)
print("face: vertices: %s uvs: %s norms: %s groups: %s" % (verts, uv, norms, weights)) print("face: vertices: %s uvs: %s norms: %s groups: %s" % (verts, uv, norms, weights))

Loading…
Cancel
Save