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 hidden styles being reset to visible #2996

Closed geomaster closed 3 months ago

geomaster commented 1 year ago

In searchShapes(), if we found a matching element for a style in this.processedElements(), we would reset its closed property to false always, even if the element is hidden. Instead, set it to the value of the hd property to ensure that hidden styles are not re-rendered when an update occurs (e.g. via reloadShapes(), see #2983).