From fb12ddc8d0195672aa1ade6e181c8b26378ad10d Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Thu, 25 May 2023 09:15:02 +0200 Subject: [PATCH] lottieitem: Added alpha in Fill::updateContent method. use parent alpha in the Fill::updateContent method to calculate combined alpha. Change-Id: Id56f4cd9680c7c906219001ac4f1e632f7c569f7 --- src/lottie/lottieitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index d5fd636..15e00da 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -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); -- 2.34.1