Respect body and layer visibility