aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--experimental/skottie/SkottieAnimator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/skottie/SkottieAnimator.cpp b/experimental/skottie/SkottieAnimator.cpp
index c1e83f7e90..e189ebcd56 100644
--- a/experimental/skottie/SkottieAnimator.cpp
+++ b/experimental/skottie/SkottieAnimator.cpp
@@ -33,7 +33,7 @@ static inline T lerp(const T&, const T&, float);
template <>
ScalarValue lerp(const ScalarValue& v0, const ScalarValue& v1, float t) {
SkASSERT(t >= 0 && t <= 1);
- return v0 * (1 - t) + v1 * t;
+ return v0 + (v1 - v0) * t;
}
template <>