Reference Cinema 4D Basic Features BodyPaint 3D Layer Menu
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D

Flatten Layers

This command merges all the layers to form a single layer. Invisible layers are deleted in the process and any transparent areas in the flattened layer are filled with white.