Skip to content

Commit cdc8357

Browse files
committed
check arrays are not null and greater than 0
don't need to check if they're the same length as vertices array as Unity gives an error if they aren't
1 parent 42ee6a2 commit cdc8357

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 >= 0;
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 >= 0;
15241524
}
15251525

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

0 commit comments

Comments
 (0)