lottie/vdasher: fix multiple dashes issue on multiple pathes 34/187734/1
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 28 Aug 2018 06:08:40 +0000 (15:08 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 28 Aug 2018 06:08:40 +0000 (15:08 +0900)
mIndex is for handling multiple dashes.
If a previous path ends at mIndex > 0,
it should be initialized as 0 when it starts job for next path.
The previous work shouldn't affect the next path.

Change-Id: Iab2b00fe456f7195acd7e086f55758ad7d2a7bf6

src/vector/vdasher.cpp

index 095738b0374c7a24b8c7c7acb799b0e9e4600102..508b767d678f1a48a11ff802a13cdcd9c9728217 100644 (file)
@@ -72,6 +72,7 @@ void VDasher::moveTo(const VPointF &p)
     mDiscard = false;
     mStartNewSegment = true;
     mCurPt = p;
+       mIndex = 0;
 
     if (!vCompare(mDashOffset, 0.0f)) {
         float totalLength = 0.0;