Skip to content

Commit 42ee6a2

Browse files
committed
code review fix
check normals are >= instead of equal to vertices length
1 parent efdc791 commit 42ee6a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,19 +1512,19 @@ public MeshInfo (Mesh mesh, Material[] materials)
15121512
}
15131513

15141514
public bool HasValidNormals(){
1515-
return Normals != null && Normals.Length == Vertices.Length;
1515+
return Normals != null && Normals.Length >= Vertices.Length;
15161516
}
15171517

15181518
public bool HasValidBinormals(){
15191519
return HasValidNormals () && HasValidTangents () && Binormals != null;
15201520
}
15211521

15221522
public bool HasValidTangents(){
1523-
return Tangents != null && Tangents.Length == Vertices.Length;
1523+
return Tangents != null && Tangents.Length >= Vertices.Length;
15241524
}
15251525

15261526
public bool HasValidVertexColors(){
1527-
return VertexColors != null && VertexColors.Length == Vertices.Length;
1527+
return VertexColors != null && VertexColors.Length >= Vertices.Length;
15281528
}
15291529
}
15301530

0 commit comments

Comments
 (0)