|
Blender V4.5
|
#include <BKE_attribute.hh>
Inherits blender::bke::AttributeAccessor.
Public Member Functions | |
| MutableAttributeAccessor (void *owner, const AttributeAccessorFunctions &fn) | |
| template<typename T> | |
| AttributeWriter< T > | lookup_for_write (const StringRef attribute_id) |
| template<typename T> | |
| SpanAttributeWriter< T > | lookup_for_write_span (const StringRef attribute_id) |
| bool | add (const StringRef attribute_id, const AttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer) |
| template<typename T> | |
| bool | add (const StringRef attribute_id, const AttrDomain domain, const AttributeInit &initializer) |
| template<typename T> | |
| AttributeWriter< T > | lookup_or_add_for_write (const StringRef attribute_id, const AttrDomain domain, const AttributeInit &initializer=AttributeInitDefaultValue()) |
| template<typename T> | |
| SpanAttributeWriter< T > | lookup_or_add_for_write_span (const StringRef attribute_id, const AttrDomain domain, const AttributeInit &initializer=AttributeInitDefaultValue()) |
| template<typename T> | |
| SpanAttributeWriter< T > | lookup_or_add_for_write_only_span (const StringRef attribute_id, const AttrDomain domain) |
| bool | remove (const StringRef attribute_id) |
Attribute API | |
| GAttributeWriter | lookup_for_write (StringRef attribute_id) |
| GSpanAttributeWriter | lookup_for_write_span (StringRef attribute_id) |
| bool | rename (StringRef old_attribute_id, StringRef new_attribute_id) |
| GAttributeWriter | lookup_or_add_for_write (StringRef attribute_id, AttrDomain domain, eCustomDataType data_type, const AttributeInit &initializer=AttributeInitDefaultValue()) |
| GSpanAttributeWriter | lookup_or_add_for_write_span (StringRef attribute_id, AttrDomain domain, eCustomDataType data_type, const AttributeInit &initializer=AttributeInitDefaultValue()) |
| GSpanAttributeWriter | lookup_or_add_for_write_only_span (StringRef attribute_id, AttrDomain domain, eCustomDataType data_type) |
| void | remove_anonymous () |
| Public Member Functions inherited from blender::bke::AttributeAccessor | |
| AttributeAccessor (const void *owner, const AttributeAccessorFunctions &fn) | |
| bool | domain_supported (const AttrDomain domain) const |
| int | domain_size (const AttrDomain domain) const |
| bool | is_builtin (const StringRef attribute_id) const |
| std::optional< AttributeDomainAndType > | get_builtin_domain_and_type (const StringRef name) const |
| GPointer | get_builtin_default (const StringRef attribute_id) const |
| GAttributeReader | lookup (const StringRef attribute_id) const |
| GAttributeReader | lookup (const StringRef attribute_id, const AttrDomain domain) const |
| GAttributeReader | lookup (const StringRef attribute_id, const eCustomDataType data_type) const |
| template<typename T> | |
| AttributeReader< T > | lookup (const StringRef attribute_id, const std::optional< AttrDomain > domain=std::nullopt) const |
| template<typename T> | |
| AttributeReader< T > | lookup_or_default (const StringRef attribute_id, const AttrDomain domain, const T &default_value) const |
| AttributeValidator | lookup_validator (const StringRef attribute_id) const |
| GVArray | adapt_domain (const GVArray &varray, const AttrDomain from_domain, const AttrDomain to_domain) const |
| template<typename T> | |
| VArray< T > | adapt_domain (const VArray< T > &varray, const AttrDomain from_domain, const AttrDomain to_domain) const |
| void | foreach_attribute (const FunctionRef< void(const AttributeIter &)> fn) const |
| bool | contains (StringRef attribute_id) const |
| std::optional< AttributeMetaData > | lookup_meta_data (StringRef attribute_id) const |
| GAttributeReader | lookup (StringRef attribute_id, std::optional< AttrDomain > domain, std::optional< eCustomDataType > data_type) const |
| GAttributeReader | lookup_or_default (StringRef attribute_id, AttrDomain domain, eCustomDataType data_type, const void *default_value=nullptr) const |
| Set< StringRefNull > | all_ids () const |
Additional Inherited Members | |
| static std::optional< AttributeAccessor > | from_id (const ID &id) |
| Protected Attributes inherited from blender::bke::AttributeAccessor | |
| void * | owner_ |
| const AttributeAccessorFunctions * | fn_ |
Extends AttributeAccessor with methods that allow modifying individual attributes as well as the set of attributes.
Definition at line 730 of file BKE_attribute.hh.
|
inline |
Definition at line 732 of file BKE_attribute.hh.
References blender::bke::AttributeAccessor::AttributeAccessor().
|
inline |
Definition at line 797 of file BKE_attribute.hh.
References add(), blender::bke::cpp_type_to_custom_data_type(), and blender::CPPType::get().
|
inline |
Create a new attribute.
Definition at line 786 of file BKE_attribute.hh.
References blender::bke::AttributeAccessor::contains(), blender::bke::AttributeAccessor::fn_, and blender::bke::AttributeAccessor::owner_.
Referenced by add(), blender::geometry::add_instance_attributes_to_single_geometry(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), BKE_sculpt_mask_layers_ensure(), blender::ed::geometry::convert_attribute(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::io::ply::convert_ply_to_mesh(), blender::geometry::copy_and_reorder_mesh_edges(), blender::geometry::copy_and_reorder_mesh_verts(), blender::nodes::node_geo_curve_to_points_cc::copy_curve_domain_attributes(), blender::ed::sculpt_paint::face_set::create_face_sets_mesh(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::bke::CurvesGeometry::CurvesGeometry(), do_multires_bake(), blender::ed::sculpt_paint::face_set::ensure_face_sets_mesh(), blender::ed::curves::ensure_selection_attribute(), blender::ed::pointcloud::ensure_selection_attribute(), blender::ed::greasepencil::ensure_selection_domain(), ensure_weight_attribute_meta_data(), blender::ed::sculpt_paint::float_selection_ensure(), blender::bke::gather_attributes(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::bke::bake::load_attributes(), lookup_or_add_for_write(), blender::bke::mesh_calc_edges(), blender::geometry::mesh_copy_selection(), blender::geometry::mesh_copy_selection_keep_edges(), blender::geometry::mesh_copy_selection_keep_verts(), blender::bke::mesh_ensure_required_data_layers(), blender::bke::mesh_smooth_set(), blender::geometry::mesh_triangulate(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_set_grease_pencil_color_cc::node_geo_exec(), rename(), blender::ed::sculpt_paint::replace_attribute(), blender::ed::sculpt_paint::select_grow::select_grow_modal(), blender::ed::sculpt_paint::set_persistent_base_exec(), blender::bke::set_rest_position(), blender::nodes::store_computed_output_attributes(), blender::geometry::tests::TEST_F(), blender::bke::transform_custom_normal_attribute(), blender::bke::try_add_shared_field_attribute(), blender::bke::try_capture_fields_on_geometry(), blender::bke::try_sharing_point_data(), and blender::ed::sculpt_paint::expand::write_mask_data().
|
inline |
Get a writable attribute or non if it does not exist. Make sure to call #finish after changes are done.
Definition at line 752 of file BKE_attribute.hh.
References blender::CPPType::is(), lookup_for_write(), T, blender::GVArrayCommon::type(), blender::bke::GAttributeWriter::typed(), and blender::bke::GAttributeWriter::varray.
| GAttributeWriter blender::bke::MutableAttributeAccessor::lookup_for_write | ( | StringRef | attribute_id | ) |
Get a writable attribute or none if it does not exist. Make sure to call #finish after changes are done.
Definition at line 816 of file attribute_access.cc.
References blender::bke::AttributeAccessor::fn_, blender::bke::AttributeAccessor::owner_, and blender::bke::GAttributeWriter::tag_modified_fn.
Referenced by BKE_mesh_material_index_remove(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), lookup_for_write(), lookup_for_write_span(), lookup_for_write_span(), lookup_or_add_for_write(), transform_active_color_data(), and vertex_paint_from_weight().
|
inline |
Same as above, but returns a type that makes it easier to work with the attribute as a span.
Definition at line 767 of file BKE_attribute.hh.
References lookup_for_write().
| GSpanAttributeWriter blender::bke::MutableAttributeAccessor::lookup_for_write_span | ( | StringRef | attribute_id | ) |
Same as above, but returns a type that makes it easier to work with the attribute as a span.
Definition at line 836 of file attribute_access.cc.
References lookup_for_write().
Referenced by blender::ed::sculpt_paint::color::active_color_attribute_for_write(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::ed::greasepencil::add_single_curve(), BKE_grease_pencil_material_index_remove(), BKE_grease_pencil_material_remap(), blender::build_concurrent(), blender::build_sequential(), blender::geometry::calc_radius_with_interpolation(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::ed::curves::duplicate_curves(), blender::ed::curves::duplicate_points(), blender::ed::curves::ensure_selection_attribute(), blender::ed::pointcloud::ensure_selection_attribute(), blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::nodes::node_geo_extrude_mesh_cc::extrude_individual_mesh_faces(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_edges(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_face_regions(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_vertices(), face_corner_color_equalize_verts(), blender::bke::fill_attribute_range_default(), blender::nodes::node_geo_extrude_mesh_cc::gather_attributes(), blender::nodes::node_geo_extrude_mesh_cc::gather_attributes(), blender::nodes::node_geo_extrude_mesh_cc::gather_vert_attributes(), blender::nodes::node_geo_extrude_mesh_cc::gather_vert_attributes(), blender::ed::greasepencil::grease_pencil_reset_uvs_exec(), blender::ed::greasepencil::grease_pencil_stroke_smooth_exec(), blender::ed::sculpt_paint::face_set::initialize_none_to_id(), blender::bke::mesh_flip_faces(), mesh_join_offset_face_sets_ID(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::geometry::propagate_edge_attributes(), blender::geometry::propagate_vert_attributes(), blender::ed::greasepencil::resize_single_curve(), blender::ed::sculpt_paint::mask::sculpt_mask_filter_exec(), blender::ed::curves::set_attribute_exec(), blender::ed::pointcloud::set_attribute_exec(), blender::geometry::smooth_curve_positions(), blender::ed::sculpt_paint::smooth_fill_strokes(), blender::ed::sculpt_paint::greasepencil::smooth_stroke(), blender::bke::transform_custom_normal_attribute(), blender::geometry::trim_curves(), blender::ed::sculpt_paint::greasepencil::trim_end_points(), blender::bke::try_capture_fields_on_geometry(), and blender::write_weights_for_drawing().
|
inline |
Same as above, but should be used when the type is known at compile time.
Definition at line 830 of file BKE_attribute.hh.
References blender::bke::cpp_type_to_custom_data_type(), blender::CPPType::get(), lookup_or_add_for_write(), T, and blender::bke::GAttributeWriter::typed().
| GAttributeWriter blender::bke::MutableAttributeAccessor::lookup_or_add_for_write | ( | StringRef | attribute_id, |
| AttrDomain | domain, | ||
| eCustomDataType | data_type, | ||
| const AttributeInit & | initializer = AttributeInitDefaultValue() ) |
Find an attribute with the given id, domain and data type. If it does not exist, create a new attribute. If the attribute does not exist and can't be created (e.g. because it already exists on a different domain or with a different type), none is returned.
Definition at line 845 of file attribute_access.cc.
References add(), lookup_for_write(), and blender::bke::AttributeAccessor::lookup_meta_data().
Referenced by blender::ed::curves::curves_draw_exec(), blender::ed::greasepencil::duplicate_layer_and_frames(), ed_wpaint_vertex_select_pick(), lookup_or_add_for_write(), lookup_or_add_for_write_only_span(), lookup_or_add_for_write_only_span(), lookup_or_add_for_write_span(), lookup_or_add_for_write_span(), blender::nodes::node_geo_points_cc::node_geo_exec(), paintface_mouse_select(), blender::nodes::node_geo_set_id_cc::set_id_in_component(), and blender::nodes::store_computed_output_attributes().
|
inline |
Same as above, but should be used when the type is known at compile time.
Definition at line 875 of file BKE_attribute.hh.
References lookup_or_add_for_write().
| GSpanAttributeWriter blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span | ( | StringRef | attribute_id, |
| AttrDomain | domain, | ||
| eCustomDataType | data_type ) |
Find an attribute with the given id, domain and data type. If it does not exist, create a new attribute. If the attribute does not exist and can't be created, none is returned.
The "only" in the name indicates that the caller should not read existing values from the span. If the attribute is not stored as span internally, the existing values won't be copied over to the span.
For trivial types, the values in a newly created attribute will not be initialized.
Definition at line 878 of file attribute_access.cc.
References lookup_or_add_for_write().
Referenced by blender::ed::greasepencil::apply_eval_grease_pencil_data(), BKE_mesh_legacy_convert_flags_to_hide_layers(), BKE_mesh_legacy_convert_flags_to_selection_layers(), BKE_mesh_legacy_convert_mpoly_to_material_indices(), BKE_mesh_legacy_sharp_edges_from_flags(), BKE_mesh_legacy_sharp_faces_from_flags(), BKE_mesh_legacy_uv_seam_from_flags(), BM_mesh_bm_to_me_compact(), blender::geometry::calculate_cone_uvs(), blender::geometry::calculate_sphere_uvs(), blender::geometry::calculate_uvs(), blender::geometry::calculate_uvs(), blender::nodes::node_geo_distribute_points_on_faces_cc::compute_attribute_outputs(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::io::ply::convert_ply_to_mesh(), blender::bke::copy_attributes_group_to_group(), blender::bke::copy_main_point_domain_attribute_to_mesh(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_curves(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_edges(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_faces(), blender::nodes::node_geo_duplicate_elements_cc::copy_stable_id_point(), blender::nodes::node_geo_string_to_curves_cc::create_attributes(), blender::ed::curves::create_Bezier(), blender::geometry::create_curve_from_vert_indices(), blender::ed::greasepencil::create_drawing_data(), blender::nodes::node_geo_duplicate_elements_cc::create_duplicate_index_attribute(), blender::nodes::node_geo_mesh_primitive_ico_sphere_cc::create_ico_sphere_mesh(), blender::ed::transform::create_mesh(), blender::ed::curves::create_NURBS(), blender::bke::curve_legacy_to_curves(), blender::bke::curve_to_mesh_sweep(), blender::ed::curves::curves_draw_exec(), blender::nodes::node_geo_curve_to_points_cc::curves_to_points(), blender::ed::pointcloud::duplicate_points(), blender::geometry::execute_realize_curve_tasks(), blender::geometry::execute_realize_grease_pencil_tasks(), blender::geometry::execute_realize_mesh_tasks(), blender::geometry::execute_realize_pointcloud_tasks(), blender::geometry::extract_mesh_edges(), blender::geometry::extract_mesh_faces(), blender::geometry::extract_mesh_vertices(), blender::ed::sculpt_paint::hide::flush_edge_changes(), blender::bke::gather_attributes(), blender::bke::gather_attributes(), blender::bke::gather_attributes(), blender::bke::gather_attributes_group_to_group(), blender::bke::gather_attributes_to_groups(), blender::geometry::gather_point_attributes_to_interpolate(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_main_items_and_geometry(), blender::io::fbx::import_colors(), blender::io::fbx::import_edges(), blender::io::fbx::import_face_material_indices(), blender::io::fbx::import_face_smoothing(), blender::io::fbx::import_normals_into_temp_attribute(), blender::io::fbx::import_uvs(), blender::nodes::node_geo_interpolate_curves_cc::interpolate_curve_attributes(), blender::bke::bake::load_attributes(), blender::geometry::merge_layers(), blender::geometry::mesh_faces_to_curves_convert(), blender::bke::mesh_hide_face_flush(), blender::bke::mesh_hide_vert_flush(), mesh_nurbs_displist_to_mesh(), blender::bke::mesh_select_edge_flush(), blender::bke::mesh_select_face_flush(), blender::bke::mesh_select_vert_flush(), MOD_lineart_gpencil_generate_v3(), blender::nodes::node_geo_boolean_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_geo_exec(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_set_mesh_normal_cc::node_geo_exec(), object_duplilist_legacy_instances(), blender::ed::object::object_pointcloud_add_exec(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), paintface_flush_flags(), paintvert_flush_flags(), blender::nodes::node_geo_distribute_points_on_faces_cc::point_distribution_calculate(), blender::geometry::point_merge_by_distance(), blender::ed::curves::primitive_random_sphere(), blender::nodes::node_geo_distribute_points_on_faces_cc::propagate_existing_attributes(), blender::io::usd::read_face_display_color(), blender::io::usd::USDPointInstancerReader::read_geometry(), blender::io::usd::USDCurvesReader::read_velocities(), blender::io::usd::USDPointsReader::read_velocities(), blender::io::alembic::read_vertex_creases(), blender::geometry::reorder_and_flip_attributes_group_to_group(), blender::geometry::reorder_attributes_group_to_group(), blender::ed::curves::resize_curves(), blender::geometry::retrieve_attribute_spans(), blender::bke::retrieve_attributes_for_transfer(), blender::nodes::node_geo_interpolate_curves_cc::store_output_attributes(), blender::nodes::node_geo_dual_mesh_cc::transfer_attributes(), and blender::ed::object::vgroup_select_verts().
|
inline |
Same as above, but should be used when the type is known at compile time.
Definition at line 844 of file BKE_attribute.hh.
References lookup_or_add_for_write().
| GSpanAttributeWriter blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span | ( | StringRef | attribute_id, |
| AttrDomain | domain, | ||
| eCustomDataType | data_type, | ||
| const AttributeInit & | initializer = AttributeInitDefaultValue() ) |
Same as above, but returns a type that makes it easier to work with the attribute as a span. If the caller newly initializes the attribute, it's better to use lookup_or_add_for_write_only_span.
Definition at line 864 of file attribute_access.cc.
References lookup_or_add_for_write().
Referenced by blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::ed::sculpt_paint::mask::apply_mask_from_settings(), blender::nodes::node_geo_set_material_cc::assign_material_to_id_geometry(), BKE_mesh_material_remap(), BKE_pbvh_sync_visibility_from_verts(), blender::ed::greasepencil::boundary_to_curves(), blender::geometry::calculate_selection_outputs(), blender::ed::greasepencil::clipboard_paste_strokes_ex(), blender::io::ply::convert_ply_to_mesh(), blender::ed::object::convert_psys_to_mesh(), blender::io::usd::copy_primvar_to_blender_attribute(), blender::create_array_copies(), blender::create_dashes(), blender::ed::greasepencil::create_drawing_data(), blender::create_envelope_strokes(), blender::ed::transform::curves::createTransCurvesVerts(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::bke::curve_to_mesh_sweep(), data_transfer_dtdata_type_postprocess(), blender::deform_drawing(), do_lasso_select_paintvert(), blender::ed::sculpt_paint::brushes::do_layer_brush(), blender::ed::sculpt_paint::brushes::do_mask_brush(), do_paintvert_box_select(), blender::ed::curves::duplicate_curves(), blender::ed::curves::duplicate_points(), edbm_backbuf_check_and_select_faces_obmode(), edbm_backbuf_check_and_select_verts_obmode(), blender::ed::sculpt_paint::face_set::ensure_face_sets_mesh(), blender::ed::curves::cyclic_toggle::exec(), blender::geometry::execute_realize_grease_pencil_task(), blender::ed::sculpt_paint::face_set::face_hide_update(), blender::ed::sculpt_paint::mask::fill_mask_mesh(), blender::ed::sculpt_paint::hide::flush_face_changes(), blender::ed::sculpt_paint::hide::flush_face_changes_node(), blender::generate_curves(), get_uv_attribute(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), blender::ed::greasepencil::grease_pencil_caps_set_exec(), blender::ed::greasepencil::grease_pencil_primitive_init_curves(), blender::ed::greasepencil::grease_pencil_set_uniform_opacity_exec(), blender::ed::sculpt_paint::hide::grow_shrink_visibility_mesh(), blender::ed::sculpt_paint::hide::invert_visibility_mesh(), blender::bke::greasepencil::convert::legacy_gpencil_frame_to_grease_pencil_drawing(), blender::bke::greasepencil::convert::legacy_gpencil_to_grease_pencil(), mesh_add_edges(), mesh_add_faces(), mesh_add_verts(), blender::bke::mesh_calc_edges(), blender::ed::object::mesh_data_to_grease_pencil(), mesh_merge_transform(), mesh_nurbs_displist_to_mesh(), blender::bke::mesh::mesh_set_custom_normals(), blender::bke::mesh_sharp_edges_set_from_angle(), MOD_lineart_gpencil_generate_v3(), MOD_solidify_extrude_modifyMesh(), blender::modify_fill_color(), modify_mesh(), modify_mesh(), blender::modify_opacity(), blender::modify_softness(), blender::modify_stroke_by_index(), blender::modify_stroke_by_layer(), blender::modify_stroke_by_material(), blender::modify_stroke_color(), blender::modify_stroke_random(), move_face_map_data_to_attributes(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), normalEditModifier_do(), blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_extended(), paint_vertsel_circle_select(), paintface_deselect_all_visible(), paintface_hide(), paintface_reveal(), paintface_select_less(), paintface_select_linked(), paintface_select_linked_faces(), paintface_select_loop(), paintface_select_more(), paintvert_deselect_all_visible(), paintvert_hide(), paintvert_reveal(), paintvert_select_less(), paintvert_select_linked(), paintvert_select_more(), paintvert_select_ungrouped(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), blender::io::alembic::read_edge_creases(), blender::io::alembic::AbcPointsReader::read_geometry(), blender::io::alembic::AbcMeshReader::read_mesh(), blender::ed::greasepencil::remap_material_indices(), blender::ed::sculpt_paint::undo::restore_hidden_face(), blender::ed::sculpt_paint::undo::restore_mask_from_undo_step(), blender::ed::sculpt_paint::undo::restore_mask_mesh(), blender::ed::sculpt_paint::undo::restore_vert_visibility_mesh(), blender::geometry::retrieve_attribute_spans(), blender::nodes::node_geo_extrude_mesh_cc::save_selection_as_attribute(), blender::nodes::node_geo_set_id_cc::set_id_in_component(), blender::bke::greasepencil::Drawing::set_texture_matrices(), blender::io::grease_pencil::shape_attributes_to_curves(), blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::soft_eraser(), blender::geometry::transform_pointcloud(), blender::geometry::translate_pointcloud(), blender::ed::sculpt_paint::mask::update_mask_mesh(), blender::ed::sculpt_paint::hide::vert_hide_update(), blender::ed::sculpt_paint::mask::write_mask_mesh(), blender::bke::write_sharp_bezier_edges(), and blender::write_stroke_transforms().
|
inline |
Remove an attribute.
Definition at line 892 of file BKE_attribute.hh.
References blender::bke::AttributeAccessor::fn_, and blender::bke::AttributeAccessor::owner_.
Referenced by BKE_mesh_material_index_clear(), BKE_pbvh_sync_visibility_from_verts(), blender::ed::sculpt_paint::face_set::clear_face_sets(), blender::ed::geometry::convert_attribute(), blender::nodes::node_geo_mesh_primitive_ico_sphere_cc::create_ico_sphere_mesh(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::ed::curves::ensure_selection_attribute(), blender::ed::greasepencil::ensure_selection_domain(), blender::ed::curves::cyclic_toggle::exec(), blender::bke::CurvesGeometry::fill_curve_types(), blender::ed::sculpt_paint::float_selection_ensure(), blender::ed::geometry::geometry_attribute_convert_exec(), blender::ed::greasepencil::grease_pencil_reset_uvs_exec(), blender::bke::mesh_hide_face_flush(), blender::bke::mesh_hide_vert_flush(), blender::bke::mesh_select_edge_flush(), blender::bke::mesh_select_face_flush(), blender::bke::mesh_select_vert_flush(), blender::bke::mesh_sharp_edges_set_from_angle(), blender::ed::sculpt_paint::hide::mesh_show_all(), blender::bke::mesh_smooth_set(), blender::nodes::node_geo_set_mesh_normal_cc::node_geo_exec(), blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_done(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), paintface_reveal(), paintvert_reveal(), remove_anonymous(), blender::nodes::node_geo_extrude_mesh_cc::remove_non_propagated_attributes(), blender::ed::curves::remove_selection_attributes(), blender::nodes::node_geo_tool_set_selection_cc::remove_with_wrong_domain(), rename(), blender::ed::sculpt_paint::replace_attribute(), blender::ed::pointcloud::select_all(), blender::ed::sculpt_paint::select_grow::select_grow_modal(), blender::ed::sculpt_paint::set_persistent_base_exec(), blender::bke::set_rest_position(), blender::nodes::store_computed_output_attributes(), blender::bke::transform_custom_normal_attribute(), blender::geometry::trim_curves(), blender::bke::try_capture_fields_on_geometry(), and blender::ed::sculpt_paint::expand::write_mask_data().
| void blender::bke::MutableAttributeAccessor::remove_anonymous | ( | ) |
Remove all anonymous attributes.
Definition at line 784 of file attribute_access.cc.
References blender::bke::AttributeAccessor::all_ids(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::attribute_name_is_anonymous(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::pop_last(), and remove().
Referenced by blender::ed::greasepencil::apply_eval_grease_pencil_data(), and blender::bke::bake::GeometryBakeItem::prepare_geometry_for_bake().
| bool blender::bke::MutableAttributeAccessor::rename | ( | StringRef | old_attribute_id, |
| StringRef | new_attribute_id ) |
Replace the existing attribute with a new one with a different name.
Definition at line 889 of file attribute_access.cc.
References add(), blender::bke::AttributeAccessor::contains(), blender::bke::cpp_type_to_custom_data_type(), blender::bke::GAttributeReader::domain, blender::GVArrayCommon::is_span(), blender::bke::AttributeAccessor::lookup(), remove(), blender::bke::GAttributeReader::sharing_info, blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by blender::bke::bake::rename_attributes().