Component setOpaque and setAlpha

Painting doesn’t work correctly if setOpaque(true) and a parent component has setAlpha (0.5f) set. There is a check here:

if (child.isOpaque() && child.componentTransparency == 0)
{
    g.excludeClipRegion (newClip + delta);
    wasClipped = true;
}

But this test is not enough, you can’t just test if the component has an alpha of 0, you need to go up the component hierarchy and make sure all the parents are alpha 0 as well.

I believe it should be fixed like this: reFX: Fix drawing of opaque components · reFX/JUCE@6302f18 · GitHub