lottieitem: Added alpha in Fill::updateContent method. 77/293377/1 accepted/tizen/unified/20230528.171050
authorMichal Szczecinski <mihashco89@gmail.com>
Thu, 25 May 2023 07:15:02 +0000 (09:15 +0200)
committerMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Thu, 25 May 2023 07:23:47 +0000 (09:23 +0200)
use parent alpha in the Fill::updateContent method to calculate combined
alpha.

Change-Id: Id56f4cd9680c7c906219001ac4f1e632f7c569f7

src/lottie/lottieitem.cpp

index d5fd636..15e00da 100644 (file)
@@ -1271,9 +1271,9 @@ renderer::Fill::Fill(model::Fill *data)
     mDrawable.setName(mModel.name());
 }
 
-bool renderer::Fill::updateContent(int frameNo, const VMatrix &, float)
+bool renderer::Fill::updateContent(int frameNo, const VMatrix &, float alpha)
 {
-    auto combinedAlpha = mModel.opacity(frameNo);
+    auto combinedAlpha = alpha * mModel.opacity(frameNo);
     auto color = mModel.color(frameNo).toColor(combinedAlpha);
 
     VBrush brush(color);