System Information
Operating system: Windows 10
Graphics card: RTX 3080
Blender Version
Broken: 3.2 (https://developer.blender.org/diffusion/B/history/v32/;aee8e4903146) 3.3 (https://developer.blender.org/diffusion/B/history/master/;98a04ed45242)
Worked: 3.1.2
Short description of error
When using a bake target of "Color attributes", the active layer (as defined by the object data properties pane) is not used as the target and will remain unchanged.
Exact steps for others to reproduce the error
Create a cube and a material for the cube.
Create two vertex colour layers, name the second to "Target".
Connect the "Col" layer to the "Surface" output in the shader material.
Paint on the "Col" layer some recognisable colour, e.g. red.
Select the "Target" layer in the object data properties panel so that it becomes the active layer.
Go to render properties, set the engine to Cycles, set the bake target to "Color attributes", and bake.
Observe that the "Target" layer is unchanged (either change the material or use solid mode render attribute mode).