airbnb / lottie-web

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

fix: Null layers cause wrong layer order in hybrid renderer #2976

Open BokunoMasayume opened 1 year ago

BokunoMasayume commented 1 year ago

when using hybrid renderer, if a layer is exactly the next one of a null layer, it will show on top but not behind previous ones:

截屏2023-05-04 19 36 36

after fix:

截屏2023-05-04 19 36 48

the demo json is here:

test.txt

BokunoMasayume commented 1 year ago

@bodymovin Is this approach correct?