73 std::optional<bke::MutableAttributeAccessor>
get_accessor()
const;
82#define ATTR_DOMAIN_AS_MASK(domain) ((AttrDomainMask)((1 << int(domain))))
85#define ATTR_DOMAIN_MASK_COLOR \
86 ((AttrDomainMask)((ATTR_DOMAIN_MASK_POINT | ATTR_DOMAIN_MASK_CORNER)))
98 struct ReportList *reports);
114 bool include_anonymous =
true);
131 bool include_anonymous =
true);
138 bool include_anonymous =
true);
PointCloud * get_pointcloud() const
GreasePencilDrawing * get_grease_pencil_drawing() const
GreasePencil * get_grease_pencil() const
bke::AttributeStorage * get_storage() const
AttributeOwner(AttributeOwnerType type, void *ptr)
std::optional< bke::MutableAttributeAccessor > get_accessor() const
static AttributeOwner from_id(ID *id)
AttributeOwnerType type() const
Curves * get_curves() const
ENUM_OPERATORS(Layer::Flags)
std::optional< StringRefNull > BKE_attributes_active_name_get(AttributeOwner &owner)
int * BKE_attributes_active_index_p(AttributeOwner &owner)
bool BKE_attribute_remove(AttributeOwner &owner, StringRef name, struct ReportList *reports)
void BKE_attributes_active_index_validate(AttributeOwner &owner)
void BKE_id_attributes_default_color_set(struct ID *id, std::optional< StringRef > name)
void BKE_id_attributes_active_color_clear(struct ID *id)
std::optional< StringRef > BKE_id_attributes_default_color_name(const struct ID *id)
std::optional< StringRef > BKE_id_attributes_active_color_name(const struct ID *id)
int BKE_attributes_length(const AttributeOwner &owner, AttrDomainMask domain_mask, eCustomDataMask mask, bool include_anonymous=true)
void BKE_attributes_active_set(AttributeOwner &owner, StringRef name)
std::string BKE_attribute_calc_unique_name(const AttributeOwner &owner, StringRef name)
bool BKE_attribute_rename(AttributeOwner &owner, StringRef old_name, StringRef new_name, struct ReportList *reports)
std::optional< StringRef > BKE_attribute_from_index(AttributeOwner &owner, int lookup_index, AttrDomainMask domain_mask, eCustomDataMask layer_mask, bool include_anonymous=true)
bool BKE_attribute_required(const AttributeOwner &owner, StringRef name)
bke::AttrDomain BKE_attribute_domain(const Mesh &mesh, const BMesh &bm, const struct CustomDataLayer *layer)
int BKE_attribute_domain_size(const AttributeOwner &owner, int domain)
@ ATTR_DOMAIN_MASK_CORNER
@ ATTR_DOMAIN_MASK_GREASE_PENCIL_LAYER
int BKE_attribute_to_index(const AttributeOwner &owner, const StringRef name, AttrDomainMask domain_mask, eCustomDataMask layer_mask, bool include_anonymous=true)
void BKE_id_attributes_active_color_set(struct ID *id, std::optional< StringRef > name)
void BKE_attributes_active_clear(AttributeOwner &owner)
StringRef BKE_uv_map_pin_name_get(StringRef uv_map_name, char *buffer)
struct CustomDataLayer * BKE_attribute_new(Mesh &mesh, BMesh &bm, StringRef name, eCustomDataType type, bke::AttrDomain domain, struct ReportList *reports)
bool BKE_id_attributes_color_find(const struct ID *id, StringRef name)