From 82c9493adf4e68c60be8d62bd0e058b92cce01af Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Fri, 16 Nov 2018 12:01:18 +0900 Subject: [PATCH] lottie: Use the max float value for gap to generate only 1 segment. Change-Id: Ifa8a2688a49f1675567ec5e11869c67d78a83f90 --- src/vector/vpathmesure.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/vpathmesure.cpp b/src/vector/vpathmesure.cpp index d588dc6..81a4ebd 100644 --- a/src/vector/vpathmesure.cpp +++ b/src/vector/vpathmesure.cpp @@ -1,6 +1,7 @@ #include "vpathmesure.h" #include "vbezier.h" #include "vdasher.h" +#include V_BEGIN_NAMESPACE @@ -9,7 +10,7 @@ VPath oneSegment(float start, float end, const VPath & path) if (start > end) { std::swap(start, end); } - float array[5] = {0.0f, start, end - start, 1000, 0.0f}; + float array[5] = {0.0f, start, end - start, std::numeric_limits::max(), 0.0f}; VDasher dasher(array, 5); return dasher.dashed(path); } -- 2.34.1