|
Blender V5.0
|
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 721 of file mesh_attributes.cc.
|
inlinefinal |
Definition at line 788 of file mesh_attributes.cc.
References blender::bke::AttributeIter::accessor, blender::bke::Float, get_for_vertex_group_index(), blender::bke::AttributeIter::is_builtin, blender::bke::AttributeIter::is_stopped(), LISTBASE_FOREACH_INDEX, and blender::bke::Point.
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 815 of file mesh_attributes.cc.
References blender::bke::Point.
|
inline |
Definition at line 738 of file mesh_attributes.cc.
References BLI_assert, VArray< T >::from_single(), 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 765 of file mesh_attributes.cc.
References BKE_id_defgroup_name_find(), BLI_remlink(), MEM_freeN(), name, and blender::bke::remove_defgroup_index().
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 723 of file mesh_attributes.cc.
References BKE_defgroup_name_index(), and get_for_vertex_group_index().
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 749 of file mesh_attributes.cc.
References BKE_defgroup_name_index(), blender::bke::Point, and blender::bke::varray_for_mutable_deform_verts().