Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where inverted mask layer was clipped incorrectly #1763

Merged
merged 8 commits into from
Oct 11, 2022

Conversation

calda
Copy link
Member

@calda calda commented Oct 10, 2022

This PR fixes an issue where an inverted mask layer was clipped incorrectly, because the mask shape extended outside the bounds of the layer that it was masking.

Before After
Simulator Screen Shot - iPhone 12 Pro Max - 2022-10-10 at 16 34 03 Simulator Screen Shot - iPhone 12 Pro Max - 2022-10-10 at 16 33 36

You can see here the inverted mask layer (red) was smaller than the shape being cut out from it (the blue thumb in the left image), so the final inverted mask was incorrect. The fix is to make that layer larger.

Mask, before Mask, after
Simulator Screen Shot - iPhone 12 Pro Max - 2022-10-10 at 15 00 24 Simulator Screen Shot - iPhone 12 Pro Max - 2022-10-10 at 16 31 52

@calda calda enabled auto-merge (squash) October 11, 2022 20:24
@calda calda force-pushed the cal--inverted-mask-too-small branch from 0adf54d to 48e1d8b Compare October 11, 2022 20:25
@calda calda merged commit 36f9d95 into master Oct 11, 2022
@calda calda deleted the cal--inverted-mask-too-small branch October 11, 2022 21:01
MoroziOS pushed a commit to MoroziOS/tmg-lottie-ios that referenced this pull request May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants