Skip to content

Commit 7fd2066

Browse files
committed
make sure vertex colors don't get exported if array is 0 length
same for normals and tangents
1 parent f7b7be9 commit 7fd2066

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 >= 0;
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 >= 0;
1523+
return Tangents != null && Tangents.Length > 0;
15241524
}
15251525

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

0 commit comments

Comments
 (0)