From 5b7c1abed44d44adb15cffad1f42aa04d746cec6 Mon Sep 17 00:00:00 2001 From: TigerKat Date: Wed, 27 Jan 2021 11:24:11 +0930 Subject: [PATCH] Fix for normals being effectively reversed. --- export_geo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export_geo.py b/export_geo.py index 9503205..3ba7f06 100644 --- a/export_geo.py +++ b/export_geo.py @@ -92,7 +92,7 @@ def convert_mesh(geo_model, mesh, obj): w = [group.name, weight.weight] weights.append(w) 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.reverse() geomesh.addFace(geoverts, texture_name)