Skip to content

Commit

Permalink
add support for self clipping shape
Browse files Browse the repository at this point in the history
adding support for self clipping shapes in cpp since there is a valid use case for it and flutter already supports it

Diffs=
a3788ed8a add support for self clipping shape (#6416)

Co-authored-by: hernan <[email protected]>
  • Loading branch information
bodymovin and bodymovin committed Jan 6, 2024
1 parent 8af05e7 commit 5d90bc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b58df4ba70205b17dbe8f4e8204d0a78becabeaa
a3788ed8ad14d8046faec27d34c9483ddb7d7cb3
2 changes: 1 addition & 1 deletion src/shapes/clipping_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ StatusCode ClippingShape::onAddedClean(CoreContext* context)
// Iterate artboard to find shapes that are parented to the source,
// their paths will need to be RenderPaths in order to be used for
// clipping operations.
if (core->is<Shape>() && core != clippingHolder)
if (core->is<Shape>())
{
auto component = core->as<ContainerComponent>();
while (component != nullptr)
Expand Down

0 comments on commit 5d90bc8

Please sign in to comment.