Customdata merging does not check layer limit on destination #111609

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:111608_a into main 2023-08-29 18:02:44 +02:00

1 Commits

Author SHA1 Message Date
Philipp Oeser 784e3949d4 Customdata merging does not check layer limit on destination
`LayerTypeInfo` can define a `layers_max()` function which determines the
maximum allowed number of layers.

Upon merging, this limit was respected from the source, but not on the
destination, so it was possible to exceed the max (if there were layers
on the destination already).

NOTE: `layers_max()` is currently only defined for legacy CD_MTFACE, but
we might want to enforce this for UVs / CD_PROP_FLOAT2 again.

This came up in #111608.
2023-08-28 13:52:55 +02:00