Skip to content

Commit

Permalink
invalidate stroke effects when path changes
Browse files Browse the repository at this point in the history
invalidate stroke effects when path changes

Diffs=
ca138bb038 invalidate stroke effects when path changes (#9124)

Co-authored-by: hernan <[email protected]>
  • Loading branch information
bodymovin and bodymovin committed Feb 27, 2025
1 parent 5dc9108 commit 58a20d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0fc29149b99f7baeed7526e06ee815f7833fbb47
ca138bb038e5b697be5367cf1330861253ab8dbe
7 changes: 7 additions & 0 deletions src/text/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,13 @@ void Text::onDirty(ComponentDirt value)
modifierGroup->onTextWorldTransformDirty();
}
}
if (hasDirt(value, ComponentDirt::Path))
{
for (TextStyle* style : m_renderStyles)
{
style->invalidateStrokeEffects();
}
}
}

void Text::update(ComponentDirt value)
Expand Down

0 comments on commit 58a20d8

Please sign in to comment.