File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ public struct Key {
23
23
public RotationCurve ( ) { }
24
24
25
25
public void SetCurve ( int i , AnimationCurve curve ) {
26
- if ( i < 0 || i >= m_curves . Length ) {
27
- throw new System . IndexOutOfRangeException ( ) ;
28
- }
29
26
m_curves [ i ] = curve ;
30
27
}
31
28
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public void TestBasics() {
18
18
Assert . That ( EulerCurve . GetEulerIndex ( "m_LocalRotation.x" ) , Is . EqualTo ( - 1 ) ) ;
19
19
20
20
// Test get quaternion index
21
- var quaternionCurve = new QuaternionCurve ( ) ;
21
+ var quaternionCurve = new QuaternionCurve ( ) ;
22
22
Assert . That ( QuaternionCurve . GetQuaternionIndex ( "m_LocalRotation.w" ) , Is . EqualTo ( 3 ) ) ;
23
23
Assert . That ( QuaternionCurve . GetQuaternionIndex ( "m_LocalRotation" ) , Is . EqualTo ( - 1 ) ) ;
24
24
Assert . That ( QuaternionCurve . GetQuaternionIndex ( "localEulerAnglesRaw.y" ) , Is . EqualTo ( - 1 ) ) ;
You can’t perform that action at this time.
0 commit comments