airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
29.86k stars 2.85k forks source link

Animation fails to render in version 5.10.1 #2916

Closed renspoesse closed 1 year ago

renspoesse commented 1 year ago

Tell us about your environment lottie-web light 5.10.1, using SVG renderer

What did you do? Please explain the steps you took before you encountered the problem. The file renders correctly in lottie-web light 5.7.9, but renders nothing in 5.10.1. No console errors.

What did you expect to happen? The animation should render.

What actually happened? Please include as much relevant detail as possible. The animation doesn't render anything. Calling destroy() on the animation later throws an error.

Please provide a download link to the After Effects file that demonstrates the problem. animation.json.zip

bodymovin commented 1 year ago

can you share the .aep? It looks like there are two consecutive layers acting as masks, which is not supported, but I'd like to confirm

bodymovin commented 1 year ago

This should be fixed now! It was indeed related to two consecutive layers as masks, which is not a defined behavior in AE, nor in lottie, but for backwards compatibility, it is working as before.

renspoesse commented 1 year ago

Thank you! Closing as fixed in https://github.com/airbnb/lottie-web/commit/b80ae19854771d1bd9cf4ef6853ac9ff08277a9a.