Skip to content

Commit

Permalink
Fix: Issue with faces containing an incomplete set of normals
Browse files Browse the repository at this point in the history
  • Loading branch information
leezer3 committed Dec 21, 2020
1 parent 5bdc000 commit 89bf9ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/Plugins/Object.CsvB3d/Plugin.Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,11 @@ private static StaticObject ReadObject(string FileName, Encoding Encoding) {
MeshFace f = new MeshFace {Vertices = new MeshFaceVertex[Arguments.Length]};
for (int j = 0; j < Arguments.Length; j++) {
f.Vertices[j].Index = (ushort)a[j];
f.Vertices[j].Normal = Normals[a[j]];
if (j < Normals.Count)
{
f.Vertices[j].Normal = Normals[a[j]];
}

}
if (Builder.isCylinder && BveTsHacks && CylinderHack)
{
Expand Down

0 comments on commit 89bf9ff

Please sign in to comment.