rive-app / rive-cpp-legacy

C++ runtime for Rive
MIT License
287 stars 43 forks source link

Check for visibility when we compute isTranslucent #159

Closed mikerreed closed 2 years ago

mikerreed commented 2 years ago

This fixes the bug when an artboard/animation has a background, but it is marked invisible. Such a background should be treated as isTranslucent() for purposes of supporting per-pixel alpha in the recorder.

Without this fix, such an artboard would be considered opaque, and we would disable per-pixel alpha, and give the user a black background in the recording.