From d7fd9124a7aa1cc0cddf0c47150799fdf343f277 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Wed, 5 Dec 2018 17:08:05 +0900 Subject: [PATCH] lottie: Fix the issue when dash length is 0. AE can draw zero length dash. Change-Id: I286e0a5503952f7e4ee38e3cc05c8ac3392f7579 --- src/lottie/lottieitem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index beea1b8..64d15fa 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -999,6 +999,9 @@ void LOTStrokeItem::updateRenderNode() mDrawable->setStrokeInfo(mCap, mJoin, mMiterLimit, mWidth * scale); if (mDashArraySize) { + /* AE draw the dash even if dash value is 0 */ + if (vCompare(mDashArray[0], 0.0f)) mDashArray[0]= 0.2; + for (int i = 0 ; i < mDashArraySize ; i++) mDashArray[i] *= scale; mDrawable->setDashInfo(mDashArray, mDashArraySize); -- 2.7.4