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:
parent
e75dfaf17b
commit
a0f0a4dd49
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user