Skip to content

Commit

Permalink
add clipResult enum and render clips to copy the editor behavior
Browse files Browse the repository at this point in the history
This PR changes how clipping works in the runtime in order to mimic how the editor works.
A hidden path will now behave as an empty path effectively fully hiding the clipped element instead of being skipped.
It also introduces a performance improvement in case shapes don't have any visible paths. The ClipResult enum is used to differentiate between clipping with at least an empty path or no empty paths at all.
For now, that improvement will only be used for hidden paths but an upcoming PR will also use it for collapsed paths inside solos.

Diffs=
e717ed98a add clipResult enum and render clips to copy the editor behavior (#6218)
  • Loading branch information
bodymovin committed Nov 14, 2023
1 parent da338c3 commit b8c029c
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 @@
faba3ff515e612f2fbc8e65dff11095f9a0dbbe2
e717ed98acc5d89c3588d595e5c0735b8fbc07f0
2 changes: 1 addition & 1 deletion wasm/submodules/rive-cpp

0 comments on commit b8c029c

Please sign in to comment.