Fix for normals being effectively reversed.

master
TigerKat 4 years ago
parent 9c6134d911
commit 5b7c1abed4

@ -92,7 +92,7 @@ def convert_mesh(geo_model, mesh, obj):
w = [group.name, weight.weight] w = [group.name, weight.weight]
weights.append(w) weights.append(w)
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() geoverts.reverse()
geomesh.addFace(geoverts, texture_name) geomesh.addFace(geoverts, texture_name)

Loading…
Cancel
Save