Skip to content

Commit 492fbb7

Browse files
committed
Pass combinedAlpha when not complexContent.
1 parent d400087 commit 492fbb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/lottie/lottieitem.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,9 +1306,9 @@ renderer::Stroke::Stroke(model::Stroke *data)
13061306
static vthread_local std::vector<float> Dash_Vector;
13071307

13081308
bool renderer::Stroke::updateContent(int frameNo, const VMatrix &matrix,
1309-
float)
1309+
float alpha)
13101310
{
1311-
auto combinedAlpha = mModel.opacity(frameNo);
1311+
auto combinedAlpha = alpha * mModel.opacity(frameNo);
13121312
auto color = mModel.color(frameNo).toColor(combinedAlpha);
13131313

13141314
VBrush brush(color);

‎src/lottie/lottieitem_capi.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void renderer::Layer::buildLayerNode()
8888
mCApiData = std::make_unique<renderer::CApiData>();
8989
clayer().keypath = name();
9090
}
91-
if (complexContent()) clayer().mAlpha = uint8_t(combinedAlpha() * 255.f);
91+
if (!complexContent()) clayer().mAlpha = uint8_t(combinedAlpha() * 255.f);
9292
clayer().mVisible = visible();
9393
// update matte
9494
if (hasMatte()) {

0 commit comments

Comments
 (0)