Skip to content

Commit 7e83e41

Browse files
committed
import normals in 2018.4 but not 2018.3
1 parent 4ad3d0e commit 7e83e41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

com.unity.formats.fbx/Tests/FbxTests/ModelExporterTest.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,9 +871,14 @@ public void TestBlendShapeExport(string fbxPath)
871871
importer.optimizeMesh = false;
872872
importer.meshCompression = ModelImporterMeshCompression.Off;
873873

874+
#if UNITY_2018_4_OR_NEWER
875+
importer.importNormals = ModelImporterNormals.Import;
876+
importer.importTangents = ModelImporterTangents.CalculateMikk;
877+
#else
874878
// In 2018.3, the vertices still do not match unless no normals
875879
// are imported.
876880
importer.importNormals = ModelImporterNormals.None;
881+
#endif
877882

878883
// If either blendshape normals are imported or weldVertices is turned off (or both),
879884
// the vertex count between the original and exported meshes does not match.

0 commit comments

Comments
 (0)