|
Blender V4.5
|
Inherits blender::bke::DynamicAttributesProvider.
Public Member Functions | |
| GAttributeReader | try_get_for_read (const void *owner, const StringRef attribute_id) const final |
| GAttributeReader | get_for_vertex_group_index (const Mesh &mesh, const Span< MDeformVert > dverts, const int vertex_group_index) const |
| GAttributeWriter | try_get_for_write (void *owner, const StringRef attribute_id) const final |
| bool | try_delete (void *owner, const StringRef name) const final |
| bool | foreach_attribute (const void *owner, const FunctionRef< void(const AttributeIter &)> fn) const final |
| void | foreach_domain (const FunctionRef< void(AttrDomain)> callback) const final |
| Public Member Functions inherited from blender::bke::DynamicAttributesProvider | |
| virtual bool | try_create (void *owner, const StringRef attribute_id, const AttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer) const |
| virtual bool | foreach_attribute (const void *owner, FunctionRef< void(const AttributeIter &)> fn) const =0 |
This provider makes vertex groups available as float attributes.
Definition at line 736 of file mesh_attributes.cc.
|
inlinefinal |
Definition at line 803 of file mesh_attributes.cc.
References CD_PROP_FLOAT, get_for_vertex_group_index(), blender::bke::AttributeIter::is_stopped(), LISTBASE_FOREACH_INDEX, and blender::bke::Point.
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 828 of file mesh_attributes.cc.
References blender::bke::Point.
|
inline |
Definition at line 753 of file mesh_attributes.cc.
References BLI_assert, VArray< T >::ForSingle(), blender::Span< T >::is_empty(), blender::bke::Point, and blender::bke::varray_for_deform_verts().
Referenced by foreach_attribute(), and try_get_for_read().
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 780 of file mesh_attributes.cc.
References BKE_id_defgroup_name_find(), BLI_remlink(), MEM_freeN(), and blender::bke::remove_defgroup_index().
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 738 of file mesh_attributes.cc.
References BKE_defgroup_name_index(), and get_for_vertex_group_index().
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 764 of file mesh_attributes.cc.
References BKE_defgroup_name_index(), blender::bke::Point, and blender::bke::varray_for_mutable_deform_verts().