diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-14 18:25:53 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-14 18:26:07 +0300 |
commit | f5e7221fbdc3277528b0cd8da4e9b3e0197e334f (patch) | |
tree | 582e8ec5e1986748f2087ff40d2c4c07c3621a33 /source/blender/blenkernel/BKE_attribute.h | |
parent | b690f4c2e6d02af522cebadb71318e14299dc362 (diff) |
Cleanup: Fix const correctness of attribute search function
Retrieving a mutable custom data layer from a const ID
should not be possible.
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute.h')
-rw-r--r-- | source/blender/blenkernel/BKE_attribute.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_attribute.h b/source/blender/blenkernel/BKE_attribute.h index 18993546e83..13eefd27bec 100644 --- a/source/blender/blenkernel/BKE_attribute.h +++ b/source/blender/blenkernel/BKE_attribute.h @@ -72,7 +72,7 @@ struct CustomDataLayer *BKE_id_attribute_find(const struct ID *id, int type, eAttrDomain domain); -struct CustomDataLayer *BKE_id_attribute_search(const struct ID *id, +struct CustomDataLayer *BKE_id_attribute_search(struct ID *id, const char *name, eCustomDataMask type, eAttrDomainMask domain_mask); |