Skip to content

Commit b210b5e

Browse files
committed
Fix mirror animating types
1 parent f69e72a commit b210b5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/animations/mirror_animating.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Animation } from "./animation";
55
import { Keyframe } from "./keyframe";
66
import { BoneAnimator } from "./timeline_animators";
77

8-
type TKeyframe = Keyframe | _Keyframe;
8+
type TKeyframe = _Keyframe;
99
interface 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

Comments
 (0)