diff --git a/packages/core/src/animation/Keyframe.ts b/packages/core/src/animation/Keyframe.ts index 1a52f721c4..b4a50c80ee 100644 --- a/packages/core/src/animation/Keyframe.ts +++ b/packages/core/src/animation/Keyframe.ts @@ -10,16 +10,16 @@ export class Keyframe< T = V extends number ? number : V extends Vector2 - ? Vector2 - : V extends Vector3 - ? Vector3 - : V extends Vector4 | Color | Quaternion | Rect - ? Vector4 - : V extends number[] | Float32Array - ? number[] - : V extends ReferResource - ? ReferResource - : never + ? Vector2 + : V extends Vector3 + ? Vector3 + : V extends Vector4 | Color | Quaternion | Rect + ? Vector4 + : V extends number[] | Float32Array + ? number[] + : V extends ReferResource + ? ReferResource + : never > { /** The time of the Keyframe. */ time: number; diff --git a/packages/core/src/animation/internal/animationCurveOwner/AnimationCurveOwner.ts b/packages/core/src/animation/internal/animationCurveOwner/AnimationCurveOwner.ts index 4bd51e0424..6406f380e6 100644 --- a/packages/core/src/animation/internal/animationCurveOwner/AnimationCurveOwner.ts +++ b/packages/core/src/animation/internal/animationCurveOwner/AnimationCurveOwner.ts @@ -92,8 +92,8 @@ export class AnimationCurveOwner { ? srcCurve._evaluateAdditive(srcTime, this.baseEvaluateData) : srcCurve._evaluate(srcTime, this.baseEvaluateData) : additive - ? this.cureType._getZeroValue(this.baseEvaluateData.value) - : this.defaultValue; + ? this.cureType._getZeroValue(this.baseEvaluateData.value) + : this.defaultValue; const destValue = destCurve && destCurve.keys.length @@ -101,8 +101,8 @@ export class AnimationCurveOwner { ? destCurve._evaluateAdditive(destTime, this.crossEvaluateData) : destCurve._evaluate(destTime, this.crossEvaluateData) : additive - ? this.cureType._getZeroValue(this.crossEvaluateData.value) - : this.defaultValue; + ? this.cureType._getZeroValue(this.crossEvaluateData.value) + : this.defaultValue; return this._lerpValue(srcValue, destValue, crossWeight); } @@ -126,8 +126,8 @@ export class AnimationCurveOwner { ? destCurve._evaluateAdditive(destTime, this.crossEvaluateData) : destCurve._evaluate(destTime, this.crossEvaluateData) : additive - ? this.cureType._getZeroValue(this.crossEvaluateData.value) - : this.defaultValue; + ? this.cureType._getZeroValue(this.crossEvaluateData.value) + : this.defaultValue; return this._lerpValue(srcValue, destValue, crossWeight); }