Flatten Visible Layers

This command merges all visible layers to form a single layer. Invisible layers remain unchanged.