Cleanup: Fix const correctness of attribute search function
Retrieving a mutable custom data layer from a const ID should not be possible.
This commit is contained in:
parent
b690f4c2e6
commit
f5e7221fbd
|
@ -72,7 +72,7 @@ struct CustomDataLayer *BKE_id_attribute_find(const struct ID *id,
|
||||||
int type,
|
int type,
|
||||||
eAttrDomain domain);
|
eAttrDomain domain);
|
||||||
|
|
||||||
struct CustomDataLayer *BKE_id_attribute_search(const struct ID *id,
|
struct CustomDataLayer *BKE_id_attribute_search(struct ID *id,
|
||||||
const char *name,
|
const char *name,
|
||||||
eCustomDataMask type,
|
eCustomDataMask type,
|
||||||
eAttrDomainMask domain_mask);
|
eAttrDomainMask domain_mask);
|
||||||
|
|
|
@ -300,7 +300,7 @@ CustomDataLayer *BKE_id_attribute_find(const ID *id,
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomDataLayer *BKE_id_attribute_search(const ID *id,
|
CustomDataLayer *BKE_id_attribute_search(ID *id,
|
||||||
const char *name,
|
const char *name,
|
||||||
const eCustomDataMask type_mask,
|
const eCustomDataMask type_mask,
|
||||||
const eAttrDomainMask domain_mask)
|
const eAttrDomainMask domain_mask)
|
||||||
|
|
Loading…
Reference in New Issue