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/intern/attribute.cc | |
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/intern/attribute.cc')
-rw-r--r-- | source/blender/blenkernel/intern/attribute.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/attribute.cc b/source/blender/blenkernel/intern/attribute.cc index 7bc51881f1f..7c09b4a4ce3 100644 --- a/source/blender/blenkernel/intern/attribute.cc +++ b/source/blender/blenkernel/intern/attribute.cc @@ -300,7 +300,7 @@ CustomDataLayer *BKE_id_attribute_find(const ID *id, return nullptr; } -CustomDataLayer *BKE_id_attribute_search(const ID *id, +CustomDataLayer *BKE_id_attribute_search(ID *id, const char *name, const eCustomDataMask type_mask, const eAttrDomainMask domain_mask) |