Skip to content

Commit 411f144

Browse files
authored
Merge pull request #256 from Unity-Technologies/UNI-33083-fix-threejs-import-vertex-color-error
UNI-33083 fix threejs import vertex color error
2 parents 8a4dc8a + 7fd2066 commit 411f144

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)