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:
2e59b9f
)
lottie: fix doubled scale issue
58/187458/1
author
Youngbok Shin
<youngb.shin@samsung.com>
Thu, 23 Aug 2018 10:31:28 +0000
(19:31 +0900)
committer
Youngbok Shin
<youngb.shin@samsung.com>
Thu, 23 Aug 2018 10:31:28 +0000
(19:31 +0900)
The scale was calculated based on length 2.
So, its result was also doubled.
It should be half before return scale result.
Change-Id: I66a5fa9ba235bd5ebcde89b9b3c01c0f128d217e
src/lottie/lottieitem.cpp
patch
|
blob
|
history
diff --git
a/src/lottie/lottieitem.cpp
b/src/lottie/lottieitem.cpp
index
84945b6
..
1104cd5
100644
(file)
--- a/
src/lottie/lottieitem.cpp
+++ b/
src/lottie/lottieitem.cpp
@@
-875,7
+875,7
@@
static float getScale(const VMatrix &matrix)
p2 = matrix.map(p2);
VPointF final = p2 - p1;
- return std::sqrt(final.x() * final.x() + final.y() * final.y());
+ return std::sqrt(final.x() * final.x() + final.y() * final.y())
/ 2.0
;
}
void LOTStrokeItem::updateRenderNode()