@@ -5,7 +5,7 @@ import { Animation } from "./animation";
55import { Keyframe } from "./keyframe" ;
66import { BoneAnimator } from "./timeline_animators" ;
77
8- type TKeyframe = Keyframe | _Keyframe ;
8+ type TKeyframe = _Keyframe ;
99interface FlipCopyKeyframesOptions {
1010 keyframes : TKeyframe [ ]
1111 animators ?: BoneAnimator [ ]
@@ -60,7 +60,7 @@ function flipCopyKeyframes(options: FlipCopyKeyframesOptions):
6060 if ( opposite_animator == animator ) return ;
6161
6262 if ( options . clear_opposite ) {
63- for ( let kf of opposite_animator [ channel ] . slice ( ) as Keyframe [ ] ) {
63+ for ( let kf of opposite_animator [ channel ] . slice ( ) as TKeyframe [ ] ) {
6464 removed_keyframes . push ( kf ) ;
6565 kf . remove ( ) ;
6666 }
@@ -69,7 +69,7 @@ function flipCopyKeyframes(options: FlipCopyKeyframesOptions):
6969 let offset_factor = ( 4 + ( options . offset / 360 ) * ( order ? 1 : - 1 ) ) % 1 ;
7070 let offset_time = offset_factor * animation . length ;
7171
72- let temp_wrap_keyframe : Keyframe | undefined ;
72+ let temp_wrap_keyframe : TKeyframe | undefined ;
7373 if ( offset_time && ! kfs . find ( kf => Math . epsilon ( kf . time , offset_time , 0.005 ) ) && ! Format . animation_loop_wrapping ) {
7474 temp_wrap_keyframe = animator . createKeyframe ( null , animation . length - offset_time , channel , false , false ) ;
7575 kfs . push ( temp_wrap_keyframe ) ;
0 commit comments