diff options
author | Jacques Lucke <jacques@blender.org> | 2022-11-08 18:25:49 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-11-08 18:26:42 +0300 |
commit | 0a7308a0f1493a5b0d8ab7b764893f1772ab1008 (patch) | |
tree | 237e5c2b1a5bc3557d0c13b31104a2231c68f02d /source/blender/blenkernel/BKE_light.h | |
parent | c3391d537b11c27b469369073414ca57fee1aca6 (diff) |
Fix: improve CD_ASSIGN handling when adding custom data layer
Previously, the code would incorrectly free the passed in custom data
layer even when `CD_ASSIGN` was not used. Now the function actually
supports assigning the data to the layer. This only fixes the case for
custom data layer types that only support a single layer like `CD_MEDGE`.
Informally reviewed by Hans Goudey.
Diffstat (limited to 'source/blender/blenkernel/BKE_light.h')
0 files changed, 0 insertions, 0 deletions