lottie/parser: construct interpolator from correct argument.

This is the most annoying bug because of passing argument in wrong order to
the interpolaor constructor.

Change-Id: Idfc307186bc1dd7d6d3849d29985c3e6f493d9d0
This commit is contained in:
subhransu mohanty
2018-09-12 11:34:36 +09:00
parent 6377407e38
commit 8fa45756ab

View 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;
}