Blender  V3.3
Public Attributes | List of all members
CustomDataLayer Struct Reference

#include <DNA_customdata_types.h>

Public Attributes

int type
 
int offset
 
int flag
 
int active
 
int active_rnd
 
int active_clone
 
int active_mask
 
int uid
 
char name [64]
 
voiddata
 
const struct AnonymousAttributeIDanonymous_id
 

Detailed Description

Descriptor and storage for a custom data layer.

Definition at line 21 of file DNA_customdata_types.h.

Member Data Documentation

◆ active

int CustomDataLayer::active

Number of the active layer of this type.

Definition at line 29 of file DNA_customdata_types.h.

Referenced by CustomData_free_layer(), CustomData_merge(), and customdata_version_243().

◆ active_clone

int CustomDataLayer::active_clone

Number of the layer to render.

Definition at line 33 of file DNA_customdata_types.h.

Referenced by CustomData_free_layer(), and CustomData_merge().

◆ active_mask

int CustomDataLayer::active_mask

Number of the layer to render.

Definition at line 35 of file DNA_customdata_types.h.

Referenced by CustomData_free_layer(), and CustomData_merge().

◆ active_rnd

int CustomDataLayer::active_rnd

Number of the layer to render.

Definition at line 31 of file DNA_customdata_types.h.

Referenced by CustomData_free_layer(), CustomData_merge(), and customdata_version_243().

◆ anonymous_id

const struct AnonymousAttributeID* CustomDataLayer::anonymous_id

Run-time identifier for this layer. If no one has a strong reference to this id anymore, the layer can be removed. The custom data layer only has a weak reference to the id, because otherwise there will always be a strong reference and the attribute can't be removed automatically.

Definition at line 48 of file DNA_customdata_types.h.

Referenced by blender::bke::attribute_id_from_custom_data_layer(), blender::bke::custom_data_layer_matches_attribute_id(), CustomData_add_layer_anonymous(), customdata_compare(), customData_free_layer__internal(), and CustomData_merge().

◆ data

void* CustomDataLayer::data

◆ flag

int CustomDataLayer::flag

◆ name

char CustomDataLayer::name[64]

Layer name, MAX_CUSTOMDATA_LAYER_NAME.

Definition at line 39 of file DNA_customdata_types.h.

Referenced by blender::bke::attribute_id_from_custom_data_layer(), bake_targets_output_vertex_colors(), BKE_editmesh_loop_tangent_calc(), BKE_id_attribute_find(), BKE_id_attribute_rename(), BKE_id_attribute_search(), BKE_id_attributes_active_get(), BKE_mesh_add_mface_layers(), BKE_mesh_calc_loop_tangent_ex(), BKE_mesh_calc_loop_tangent_step_0(), BKE_remesh_reproject_vertex_paint(), bm_to_mesh_shape(), bpy_bmlayeritem_name_get(), cd_layer_find_dupe(), blender::bke::custom_data_layer_matches_attribute_id(), CustomData_bmesh_copy_data_exclude_by_type(), customdata_compare(), CustomData_copy_data_named(), CustomData_external_read(), CustomData_external_write(), CustomData_free_layer_named(), CustomData_merge(), CustomData_set_layer_unique_name(), CustomData_to_bmeshpoly(), customdata_version_242(), do_versions_point_attribute_names(), do_versions_point_attributes(), DRW_cdlayer_attr_aliases_add(), ED_geometry_attribute_convert(), face_corner_color_equalize_vertices(), blender::ed::geometry::geometry_attribute_convert_exec(), blender::ed::geometry::geometry_attribute_remove_exec(), blender::ed::geometry::geometry_color_attribute_duplicate_exec(), blender::ed::geometry::geometry_color_attribute_remove_exec(), blender::bke::layer_matches_name_and_type(), mesh_cd_calc_used_gpu_layers(), proj_paint_add_slot(), sculpt_save_active_attribute(), shape_itemf(), shapekey_layers_to_keyblocks(), transform_active_color(), unique_name_cb(), vertex_color_set(), vertex_paint_from_weight(), and blender::io::obj::OBJWriter::write_vertex_coords().

◆ offset

int CustomDataLayer::offset

◆ type

int CustomDataLayer::type

Type of data in layer.

Definition at line 23 of file DNA_customdata_types.h.

Referenced by bake_targets_output_vertex_colors(), BKE_id_attribute_find(), BKE_id_attribute_from_index(), BKE_id_attribute_search(), BKE_id_attribute_subset_active_get(), BKE_id_attribute_subset_active_set(), BKE_id_attribute_to_index(), BKE_id_attributes_active_get(), BKE_id_attributes_active_set(), BKE_mesh_add_mface_layers(), BKE_pbvh_get_color_layer(), BKE_pbvh_store_colors(), BKE_pbvh_store_colors_vertex(), BKE_pbvh_swap_colors(), BKE_pbvh_vertex_color_get(), BKE_pbvh_vertex_color_set(), BKE_remesh_reproject_vertex_paint(), bm_edge_collapse_loop_customdata(), bm_loop_customdata_merge(), bm_to_mesh_shape(), bm_to_mesh_shape_layer_index_from_kb(), BM_vert_loop_groups_data_layer_create(), BM_vert_loop_groups_data_layer_merge(), bm_vert_loop_groups_data_layer_merge__single(), BM_vert_loop_groups_data_layer_merge_weights(), bm_vert_loop_groups_data_layer_merge_weights__single(), bmo_average_vert_facedata_exec(), bmo_collapsecon_do_layer(), bmo_get_loop_color_ref(), bmo_pointmerge_facedata_exec(), bmw_UVEdgeWalker_step(), cd_layer_find_dupe(), contig_ldata_across_loops(), CustomData_blend_read(), CustomData_bmesh_copy_data_exclude_by_type(), CustomData_bmesh_interp(), CustomData_bmesh_interp_n(), customdata_compare(), CustomData_copy_data(), CustomData_copy_data_layer(), CustomData_copy_data_named(), customData_duplicate_referenced_layer_index(), CustomData_external_read(), CustomData_external_reload(), CustomData_external_remove(), CustomData_external_write(), CustomData_free_layer(), customData_free_layer__internal(), CustomData_free_layer_named(), CustomData_free_typemask(), CustomData_from_bmesh_block(), CustomData_interp(), CustomData_layer_ensure_data_exists(), CustomData_layer_validate(), CustomData_layers__print(), CustomData_merge(), CustomData_realloc(), CustomData_set_layer_unique_name(), CustomData_to_bmesh_block(), CustomData_to_bmeshpoly(), CustomData_verify_versions(), customdata_version_242(), blender::geometry::customdata_weld(), delete_customdata_layer(), do_versions_mesh_mloopcol_swap_2_62_1(), do_versions_point_attribute_names(), do_versions_point_attributes(), get_vcol_elements(), GPU_pbvh_attribute_names_update(), gpu_pbvh_make_attr_offs(), GPU_pbvh_mesh_buffers_update(), blender::bke::layer_matches_name_and_type(), mesh_validate_customdata(), paint_object_attributes_active_color_fill_ex(), blender::bke::CustomDataAttributes::remove(), blender::bke::CurvesGeometry::reverse_curves(), sculpt_save_active_attribute(), sculpt_undo_set_active_layer(), sculpt_update_object(), shape_itemf(), blender::bke::CustomDataAttributeProvider::try_delete(), blender::bke::NamedLegacyCustomDataProvider::try_delete(), um_arraystore_cd_compact(), um_arraystore_cd_expand(), and vpaint_stroke_test_start().

◆ uid

int CustomDataLayer::uid

The documentation for this struct was generated from the following file: