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 | |
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')
-rw-r--r-- | source/blender/blenkernel/BKE_attribute.h | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/attribute.cc | 2 |
2 files changed, 2 insertions, 2 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); 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) |