projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39118e2
)
lottie: Fix the issue when dash length is 0.
18/194518/1
author
subhransu mohanty
<sub.mohanty@samsung.com>
Wed, 5 Dec 2018 08:08:05 +0000
(17:08 +0900)
committer
subhransu mohanty
<sub.mohanty@samsung.com>
Wed, 5 Dec 2018 08:08:05 +0000
(17:08 +0900)
AE can draw zero length dash.
Change-Id: I286e0a5503952f7e4ee38e3cc05c8ac3392f7579
src/lottie/lottieitem.cpp
patch
|
blob
|
history
diff --git
a/src/lottie/lottieitem.cpp
b/src/lottie/lottieitem.cpp
index
beea1b8
..
64d15fa
100644
(file)
--- 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);