Merge pull request #595 from OrdinaryMagician/ue1_facetfix

Another minor correction to UE1 models
This commit is contained in:
Magnus Norddahl 2018-10-04 23:24:16 +02:00 committed by GitHub
commit 09bc6614cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ void FUE1Model::LoadGeometry()
FVector3 dir[2];
dir[0] = verts[Poly.V[1]+numVerts*j].Pos-verts[Poly.V[0]+numVerts*j].Pos;
dir[1] = verts[Poly.V[2]+numVerts*j].Pos-verts[Poly.V[0]+numVerts*j].Pos;
Poly.Normals.Push(dir[0]^dir[1]);
Poly.Normals.Push((dir[0]^dir[1]).Unit());
}
// push
polys.Push(Poly);