Skip to content

Commit

Permalink
Nnnn add blend mode text support
Browse files Browse the repository at this point in the history
although the UI was exposing the feature, text wasn't using blend modes when being rendered.
This PR adds blend mode support for text layers

Diffs=
c54d22119e Nnnn add blend mode text support (#9056)

Co-authored-by: hernan <[email protected]>
  • Loading branch information
bodymovin and bodymovin committed Feb 17, 2025
1 parent 5f31084 commit 63149ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
93e625c1d4265f8e36a5b76cd39b16ee77fff622
c54d22119e48901bf9e644702fd3ae768f793af8
1 change: 1 addition & 0 deletions src/text/text_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ void TextStyle::draw(Renderer* renderer, const Mat2D& worldTransform)
{
continue;
}
shapePaint->blendMode(parent()->as<Text>()->blendMode());
shapePaint->draw(renderer, &m_path, worldTransform, true);

if (m_paintPool.size() < m_opacityPaths.size())
Expand Down

0 comments on commit 63149ee

Please sign in to comment.