Skip to content

Commit 1d2fc7a

Browse files
author
David Lassonde
committed
Removed the tangents test
1 parent e6c4fda commit 1d2fc7a

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

Assets/com.unity.formats.fbx.tests/FbxAnimationTest.cs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,6 @@ public static IEnumerable ContinuousRotationTestCases {
7474
}
7575
}
7676

77-
// test key tangents
78-
public static IEnumerable KeyTangentsTestCases {
79-
get {
80-
yield return new TestCaseData (new float [3] { 0f, 4f, 5f }, new Vector3 [3] { new Vector3 (-100, 100, 0), new Vector3 (0f, 0.0f, 0f), new Vector3 (25f, 0f, 0f) }, new Vector3 [3] { new Vector3 (0, 0, 0), new Vector3 (0f, 0f, 16.9f), new Vector3 (0f, 0f, 0f) }).Returns (6);
81-
}
82-
}
83-
8477
public static IEnumerable SkinnedMeshTestCases {
8578
get {
8679
yield return "Models/DefaultMale/Male_DyingHitFromBack_Blend_T3_Cut01_James.fbx";
@@ -727,30 +720,6 @@ public int ContinuousRotationAnimTest (RotationCurveType rotCurveType, float []
727720
return tester.DoIt();
728721
}
729722

730-
[Description("Uni-35935 key tangents")]
731-
[Test, TestCaseSource (typeof (AnimationTestDataClass), "KeyTangentsTestCases")]
732-
public int KeyTangentsAnimTest (float [] keyTimesInSeconds, Vector3 [] keyPosValues, Vector3 [] keyRotValues)
733-
{
734-
System.Type componentType = typeof(Transform);
735-
736-
if (keyRotValues == null)
737-
{
738-
keyRotValues = new Vector3[keyPosValues.Length];
739-
}
740-
741-
string[] propertyNames = null;
742-
string testName = componentType.ToString () + "_KeyTangents";
743-
RotationCurveType rotCurveType = RotationCurveType.kEuler;
744-
745-
testName += "_Euler";
746-
propertyNames = AnimationTestDataClass.m_rotationEulerNames.Concat(AnimationTestDataClass.m_translationNames).ToArray();
747-
748-
KeyData keyData = new TransformKeyData { RotationType = rotCurveType, propertyNames = propertyNames, componentType = componentType, keyTimes = keyTimesInSeconds, keyPosValues = keyPosValues, keyEulerValues = keyRotValues };
749-
750-
var tester = new AnimTester {keyData=keyData, testName=testName, path=GetRandomFbxFilePath ()};
751-
return tester.DoIt();
752-
}
753-
754723
[Test, TestCaseSource (typeof (AnimationTestDataClass), "ComponentTestCases")]
755724
public int ComponentAnimTest (System.Type componentType)
756725
{

0 commit comments

Comments
 (0)