From b8c029cf36d008b604400db7e6999e09de7ba194 Mon Sep 17 00:00:00 2001 From: bodymovin Date: Tue, 14 Nov 2023 00:04:02 +0000 Subject: [PATCH] add clipResult enum and render clips to copy the editor behavior 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) --- .rive_head | 2 +- wasm/submodules/rive-cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index 08fea997..46863b2c 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -faba3ff515e612f2fbc8e65dff11095f9a0dbbe2 +e717ed98acc5d89c3588d595e5c0735b8fbc07f0 diff --git a/wasm/submodules/rive-cpp b/wasm/submodules/rive-cpp index 6dcdb976..c27002a5 160000 --- a/wasm/submodules/rive-cpp +++ b/wasm/submodules/rive-cpp @@ -1 +1 @@ -Subproject commit 6dcdb9760252c717316a764aaf473e2fe39cb243 +Subproject commit c27002a5d3b15ee75ac786e3e84d0e12c59de76b