lottie/parser: construct interpolator from correct argument. 25/188925/1
authorsubhransu mohanty <sub.mohanty@samsung.com>
Wed, 12 Sep 2018 02:34:36 +0000 (11:34 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Wed, 12 Sep 2018 02:34:36 +0000 (11:34 +0900)
This is the most annoying bug because of passing argument in wrong order to
the interpolaor constructor.

Change-Id: Idfc307186bc1dd7d6d3849d29985c3e6f493d9d0

src/lottie/lottieparser.cpp

index 21d4503..93e5b95 100644 (file)
@@ -1767,7 +1767,7 @@ void LottieParserImpl::parseKeyFrame(LOTAnimInfo<T> &obj)
             keyframe.mInterpolator = search->second;
         } else {
             keyframe.mInterpolator = std::make_shared<VInterpolator>(
-                VInterpolator(inTangent, outTangent));
+                VInterpolator(outTangent, inTangent));
             compRef->mInterpolatorCache[interpolatorKey] =
                 keyframe.mInterpolator;
         }