Cleanup: Remove BKE_attribute_allow_procedural_access

This function was already replaced by `bke::allow_procedural_attribute_access`.
Removes the rest of the usages.

Pull Request: https://projects.blender.org/blender/blender/pulls/123852
This commit is contained in:
Falk David 2024-06-27 19:20:04 +02:00 committed by Falk David
parent e75dfaf17b
commit a0f0a4dd49
3 changed files with 2 additions and 8 deletions

@ -74,7 +74,6 @@ class AttributeOwner {
/* Attributes. */
bool BKE_attributes_supported(const AttributeOwner &owner);
bool BKE_attribute_allow_procedural_access(const char *attribute_name);
/**
* Create a new attribute layer.

@ -199,11 +199,6 @@ bool BKE_attributes_supported(const AttributeOwner &owner)
return false;
}
bool BKE_attribute_allow_procedural_access(const char *attribute_name)
{
return blender::bke::allow_procedural_attribute_access(attribute_name);
}
static bool bke_attribute_rename_if_exists(AttributeOwner &owner,
const char *old_name,
const char *new_name,
@ -787,7 +782,7 @@ CustomDataLayer *BKE_attributes_active_get(AttributeOwner &owner)
CustomDataLayer *layer = &customdata->layers[i];
if (CD_MASK_PROP_ALL & CD_TYPE_AS_MASK(layer->type)) {
if (index == active_index) {
if (BKE_attribute_allow_procedural_access(layer->name)) {
if (blender::bke::allow_procedural_attribute_access(layer->name)) {
return layer;
}
return nullptr;

@ -314,7 +314,7 @@ static int rna_Attribute_domain_get(PointerRNA *ptr)
static bool rna_Attribute_is_internal_get(PointerRNA *ptr)
{
const CustomDataLayer *layer = (const CustomDataLayer *)ptr->data;
return !BKE_attribute_allow_procedural_access(layer->name);
return !blender::bke::allow_procedural_attribute_access(layer->name);
}
static bool rna_Attribute_is_required_get(PointerRNA *ptr)