|
Blender V5.0
|
#include <BKE_attribute.hh>
Public Member Functions | |
| operator bool () const | |
| void | finish () |
Public Attributes | |
| VMutableArray< T > | varray |
| AttrDomain | domain |
| std::function< void()> | tag_modified_fn |
Result when looking up an attribute from some geometry with read and write access. After writing to the attribute, the finish method has to be called. This may invalidate caches based on this attribute.
Definition at line 248 of file BKE_attribute.hh.
|
inline |
Has to be called after the attribute has been modified.
Definition at line 272 of file BKE_attribute.hh.
References tag_modified_fn.
Referenced by BKE_mesh_material_index_remove(), BKE_mesh_validate_arrays(), BKE_mesh_validate_material_indices(), blender::ed::curves::curves_draw_exec(), ed_wpaint_vertex_select_pick(), and blender::nodes::node_geo_points_cc::node_geo_exec().
|
inline |
Definition at line 264 of file BKE_attribute.hh.
| AttrDomain blender::bke::AttributeWriter< T >::domain |
Domain where the attribute is stored on the geometry. Also determines the size of the virtual array.
Definition at line 258 of file BKE_attribute.hh.
Referenced by BKE_mesh_material_index_remove().
| std::function<void()> blender::bke::AttributeWriter< T >::tag_modified_fn |
A function that has to be called after the attribute has been edited. This may be empty.
Definition at line 262 of file BKE_attribute.hh.
Referenced by finish().
| VMutableArray<T> blender::bke::AttributeWriter< T >::varray |
Virtual array giving read and write access to the attribute. This may be empty. Consider using SpanAttributeWriter when you want to access the virtual array as a span.
Definition at line 253 of file BKE_attribute.hh.
Referenced by BKE_mesh_material_index_remove(), BKE_mesh_validate_arrays(), BKE_mesh_validate_material_indices(), blender::ed::curves::curves_draw_exec(), ed_wpaint_vertex_select_pick(), and blender::nodes::node_geo_points_cc::node_geo_exec().