Blender V5.3
blender::IDProperty Struct Reference

#include <DNA_ID.h>

Inherited by blender::bke::ProjectVariable [private].

Public Attributes

struct IDProperty * next = nullptr
struct IDProperty * prev = nullptr
eIDPropertyType type = IDP_STRING
char subtype = 0
eIDPropertyFlag flag = {}
char name [64] = ""
char _pad0 [4] = {}
IDPropertyData data
int len = 0
int totallen = 0
IDPropertyUIData * ui_data = nullptr

Detailed Description

Definition at line 143 of file DNA_ID.h.

Member Data Documentation

◆ _pad0

char blender::IDProperty::_pad0[4] = {}

Definition at line 154 of file DNA_ID.h.

◆ data

IDPropertyData blender::IDProperty::data

NOTE: alignment for 64 bits.

Definition at line 157 of file DNA_ID.h.

Referenced by blender::BKE_lib_query_idpropertiesForeachIDLink_callback(), blender::blo_do_versions_290(), blender::blo_do_versions_404(), blender::BPy_IDGroup_MapDataToPy(), blender::BPy_Wrap_GetItems(), blender::BPy_Wrap_GetKeys(), blender::BPy_Wrap_GetValues(), blender::deg::DepsgraphNodeBuilder::build_idproperties(), blender::deg::DepsgraphRelationBuilder::build_idproperties(), blender::ed::geometry::create_inputs_srna(), blender::forward_compat::create_legacy_geometry_nodes_properties(), blender::ed::geometry::create_panels_srna(), blender::draw::Manager::extract_all_object_attributes(), blender::ed::geometry::OperatorTypeData::from_asset(), blender::ed::geometry::get_input_enum_items(), blender::animrig::get_keyable_id_property_paths(), blender::io::usd::get_usd_source_path(), blender::io::hydra::BlenderCameraIDPropertiesDataSource::GetNames(), blender::bke::idprop::hash(), blender::IDGroup_Iter_New_WithType(), blender::IDP_AddToGroup(), blender::IDP_AssignID(), blender::IDP_AssignStringMaxSize(), blender::IDP_ClearProperty(), blender::IDP_CopyArray(), blender::IDP_CopyGroup(), blender::IDP_CopyID(), blender::IDP_CopyIDPArray(), blender::IDP_CopyString(), blender::IDP_DirectLinkArray(), blender::IDP_DirectLinkGroup(), blender::IDP_DirectLinkIDPArray(), blender::IDP_DirectLinkString(), blender::IDP_EqualsProperties_ex(), blender::idp_foreach_property_recurse(), blender::IDP_FreeArray(), blender::IDP_FreeGroup(), blender::IDP_FreeIDPArray(), blender::IDP_FreeString(), blender::idp_generic_copy(), blender::IDP_GetPropertyFromGroup(), blender::idp_group_children_map_ensure(), blender::IDP_MergeGroup_ex(), blender::IDP_New(), blender::IDP_NewStringMaxSize(), blender::IDP_RemoveFromGroup(), blender::IDP_ReplaceGroupInGroup(), blender::IDP_ReplaceInGroup_ex(), blender::idp_repr_fn_recursive(), blender::idp_resize_group_array(), blender::IDP_ResizeArray(), blender::IDP_ResizeIDPArray(), blender::IDP_SyncGroupTypes(), blender::IDP_SyncGroupValues(), blender::IDP_WriteArray(), blender::IDP_WriteGroup(), blender::IDP_WriteIDPArray(), blender::IDP_WriteString(), blender::idprop_py_from_idp_id(), blender::bke::idprop::IDPGroupSerializer::idprop_to_dictionary(), blender::idproperties_fix_groups_lengths_recurse(), blender::idproperty_find_ui_container(), blender::imbuf::imb_create_write_spec(), blender::rna_idp_path(), blender::ed::space_node::search_link_ops_for_asset_metadata(), blender::set_vec_attrib(), blender::store_id_properties(), blender::sync_system_properties(), blender::bke::idprop::tests::TEST_F(), blender::version_geometry_nodes_add_attribute_input_settings(), blender::version_idproperty_ui_data(), blender::version_mesh_crease_generic(), blender::WM_operator_last_properties_store(), blender::WM_operator_properties_alloc(), blender::io::alembic::CustomPropertiesExporter::write_all(), blender::write_jpeg(), and blender::io::usd::USDAbstractWriter::write_user_properties().

◆ flag

◆ len

int blender::IDProperty::len = 0

Array length, and importantly string length + 1. the idea is to be able to reuse array reallocation functions on strings.

Definition at line 163 of file DNA_ID.h.

Referenced by blender::bke::idprop::array_values_set(), blender::blend_id_property(), blender::BPy_Group_Iter_same_size_or_raise_error(), blender::BPy_Group_View_len(), blender::BPy_IDArray_ass_slice(), blender::BPy_IDArray_ass_subscript(), blender::BPy_IDArray_getbuffer(), blender::BPy_IDArray_GetItem(), blender::BPy_IDArray_Len(), blender::BPy_IDArray_repr(), blender::BPy_IDArray_SetItem(), blender::BPy_IDArray_slice(), blender::BPy_IDArray_subscript(), blender::BPy_IDGroup_CorrectListLen(), blender::BPy_IDGroup_Map_Len(), blender::BPy_IDGroup_MapDataToPy(), blender::BPy_Wrap_GetItems(), blender::BPy_Wrap_GetKeys(), blender::BPy_Wrap_GetValues(), blender::io::usd::create_vector_attrib(), blender::io::alembic::ABCAbstractWriter::ensure_custom_properties_exporter(), blender::bke::idprop::hash(), blender::IDGroup_Iter_New_WithType(), blender::IDP_AddToGroup(), blender::IDP_AppendArray(), blender::IDP_ClearProperty(), blender::IDP_CopyArray(), blender::IDP_CopyIDPArray(), blender::IDP_CopyString(), blender::IDP_DirectLinkArray(), blender::IDP_DirectLinkIDPArray(), blender::IDP_DirectLinkString(), blender::IDP_EqualsProperties_ex(), blender::idp_foreach_property_recurse(), blender::IDP_FreeIDPArray(), blender::idp_from_PySequence(), blender::idp_from_PySequence_Buffer(), blender::idp_from_PySequence_Fast(), blender::IDP_GetPropertyFromGroup(), blender::IDP_group_lookup_float_array(), blender::IDP_New(), blender::IDP_NewIDPArray(), blender::IDP_NewStringMaxSize(), blender::IDP_RemoveFromGroup(), blender::idp_repr_fn_recursive(), blender::idp_resize_group_array(), blender::IDP_ResizeArray(), blender::IDP_ResizeIDPArray(), blender::IDP_SetIndexArray(), blender::bke::tests::idp_string_is_valid_utf8(), blender::IDP_SyncGroupTypes(), blender::IDP_WriteArray(), blender::IDP_WriteIDPArray(), blender::IDP_WriteString(), blender::idprop_py_from_idp_idparray(), blender::idprop_py_from_idp_string(), blender::bke::idprop::IDPArraySerializer::idprop_to_dictionary(), blender::idproperties_fix_groups_lengths_recurse(), blender::rna_idp_path(), blender::rna_property_rna_or_id_get(), blender::ui::template_operator_property_buts_draw_single(), blender::bke::tests::TEST_F(), blender::bke::tests::TEST_F(), blender::bke::tests::TEST_F(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::texture_paint_camera_project_exec(), blender::version_idproperty_move_data_float(), and blender::version_idproperty_move_data_int().

◆ name

char blender::IDProperty::name[64] = ""

Definition at line 152 of file DNA_ID.h.

Referenced by blender::io::otio::add_foreign_metadata(), blender::blend_properties(), blender::BPy_Group_IterItems_next(), blender::BPy_Group_IterKeys_next(), blender::BPy_IDGroup_GetName(), blender::BPy_IDGroup_Iter_repr(), blender::BPy_IDGroup_MapDataToPy(), blender::BPy_IDGroup_repr(), blender::BPy_IDGroup_SetName(), blender::BPy_IDGroup_View_repr(), blender::BPy_IDPropertyUIManager_repr(), blender::BPy_Wrap_GetItems(), blender::BPy_Wrap_GetKeys(), blender::bke::idprop::IDPropertySerializer::create_dictionary(), blender::ed::geometry::create_inputs_srna(), blender::forward_compat::create_legacy_geometry_nodes_properties(), blender::ed::geometry::create_panels_srna(), blender::io::usd::create_vector_attrib(), blender::draw::Manager::extract_all_object_attributes(), blender::ed::geometry::OperatorTypeData::from_asset(), blender::ed::geometry::get_input_enum_items(), blender::ed::geometry::get_input_socket_struct_rna(), blender::animrig::get_keyable_id_property_paths(), blender::io::hydra::BlenderCameraIDPropertiesDataSource::GetNames(), blender::bke::idprop::hash(), blender::idp_blend_write_recurse(), blender::IDP_DirectLinkGroup(), blender::IDP_DirectLinkProperty(), blender::IDP_EqualsProperties_ex(), blender::idp_foreach_property_recurse(), blender::idp_free_property_content_recurse(), blender::idp_generic_copy(), blender::IDP_MergeGroup_ex(), blender::IDP_New(), blender::IDP_NewIDPArray(), blender::IDP_NewStringMaxSize(), blender::IDP_ReplaceGroupInGroup(), blender::IDP_ReplaceInGroup(), blender::IDP_ReplaceInGroup_ex(), blender::idp_repr_fn_recursive(), blender::IDP_SyncGroupTypes(), blender::IDP_SyncGroupValues(), blender::IDP_WriteIDPArray(), blender::idproperty_find_ui_container(), blender::idprops_ensure_named_group(), blender::IMB_metadata_foreach(), blender::bke::ProjectVariable::name_get(), blender::openexr_header_metadata_global(), blender::bke::idprop::IDPropertyGroupChildrenSet::IDPropNameGetter::operator()(), blender::nodes::IDPropNameGetter::operator()(), blender::parse_accessibility_property_name(), blender::bke::ProjectVariable::ProjectVariable(), blender::bke::BlenderProject::rename_variable(), blender::rna_idp_path(), blender::ed::space_node::search_link_ops_for_asset_metadata(), blender::store_id_properties(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::version_geometry_nodes_add_attribute_input_settings(), blender::version_geometry_nodes_properties(), blender::version_idproperty_ui_data(), blender::version_mesh_crease_generic(), and blender::WM_operator_last_properties_store().

◆ next

◆ prev

◆ subtype

char blender::IDProperty::subtype = 0

eIDPropertySubType when type is IDP_STRING. eIDPropertyType for all other types.

Definition at line 150 of file DNA_ID.h.

Referenced by blender::_IDP_assert_type_and_subtype(), blender::blend_id_property(), blender::blend_properties(), blender::BPy_IDArray_get_typecode(), blender::BPy_IDArray_getbuffer(), blender::BPy_IDArray_GetItem(), blender::BPy_IDArray_SetItem(), blender::BPy_IDArray_slice(), blender::BPy_IDGroup_MapDataToPy(), blender::BPy_IDPropertyUIManager_update_from(), blender::io::usd::create_vector_attrib(), blender::bke::idprop::hash(), blender::idp_array_py_type(), blender::IDP_AssignStringMaxSize(), blender::idp_blend_write_recurse(), blender::IDP_CopyArray(), blender::IDP_CopyGroup(), blender::IDP_CopyString(), blender::IDP_DirectLinkArray(), blender::IDP_EqualsProperties_ex(), blender::idp_from_PyBytes(), blender::idp_from_PySequence_Buffer(), blender::idp_from_PySequence_Fast(), blender::idp_from_PyUnicode(), blender::IDP_group_lookup_float_array(), blender::IDP_New(), blender::idp_repr_fn_recursive(), blender::idp_resize_group_array(), blender::IDP_ResizeArray(), blender::IDP_SyncGroupTypes(), blender::IDP_type_str(), blender::IDP_ui_data_type(), blender::IDP_WriteArray(), blender::IDP_WriteIDPArray(), blender::idprop_py_from_idp_string(), blender::bke::idprop::IDPArraySerializer::idprop_to_dictionary(), blender::animrig::is_idproperty_keyable(), blender::bke::tests::TEST_F(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::texture_paint_camera_project_exec(), blender::version_idproperty_move_data_float(), and blender::version_idproperty_move_data_int().

◆ totallen

int blender::IDProperty::totallen = 0

Strings and arrays are both buffered, though the buffer isn't saved. totallen is total length of allocated array/string, including a buffer.

Note
the buffering is mild; see IDP_ResizeIDPArray for details.

Definition at line 169 of file DNA_ID.h.

Referenced by blender::IDP_ClearProperty(), blender::IDP_CopyArray(), blender::IDP_CopyString(), blender::IDP_DirectLinkArray(), blender::IDP_DirectLinkIDPArray(), blender::IDP_DirectLinkString(), blender::IDP_New(), blender::IDP_NewStringMaxSize(), blender::IDP_ResizeArray(), and blender::IDP_ResizeIDPArray().

◆ type

eIDPropertyType blender::IDProperty::type = IDP_STRING

Definition at line 145 of file DNA_ID.h.

Referenced by blender::_IDP_assert_type(), blender::_IDP_assert_type_and_subtype(), blender::_IDP_assert_type_mask(), blender::ed::asset::index::asset_metadata_from_dictionary(), blender::BKE_lib_query_idpropertiesForeachIDLink_callback(), blender::blend_id_property(), blender::blend_properties(), blender::blo_do_versions_290(), blender::BPy_IDGroup_Map_GetItem(), blender::BPy_IDGroup_Map_Len(), blender::BPy_IDGroup_MapDataToPy(), blender::BPy_IDGroup_WrapData(), blender::BPy_IDProperty_Map_ValidateAndCreate(), blender::BPy_IDPropertyUIManager_update_from(), blender::bpy_run_string_exec_with_locals_assume_gil(), blender::BPy_Wrap_SetMapItem(), blender::bke::idprop::convert_to_serialize_values(), blender::ed::geometry::create_inputs_srna(), blender::forward_compat::create_legacy_geometry_nodes_properties(), blender::ed::geometry::create_panels_srna(), blender::io::usd::create_vector_attrib(), blender::ed::geometry::custom_idname_for_asset(), blender::asset_system::DiskFileHashService::file_matches(), blender::find_property_rgba(), blender::ed::geometry::OperatorTypeData::from_asset(), blender::io::hydra::BlenderCameraIDPropertiesDataSource::Get(), blender::asset_system::DiskFileHashService::get_hash(), blender::ed::geometry::get_input_enum_items(), blender::ed::geometry::get_node_tools_type_data(), blender::bke::idprop::hash(), blender::IDGroup_Iter_New_WithType(), blender::IDGroup_View_New_WithType(), blender::IDP_AddToGroup(), blender::IDP_AppendArray(), blender::IDP_AssignID(), blender::IDP_AssignStringMaxSize(), blender::idp_blend_write_recurse(), blender::IDP_coerce_to_double_or_zero(), blender::IDP_coerce_to_float_or_zero(), blender::IDP_coerce_to_int_or_zero(), blender::IDP_CopyArray(), blender::IDP_CopyGroup(), blender::IDP_CopyID(), blender::IDP_CopyProperty_ex(), blender::IDP_CopyString(), blender::IDP_DirectLinkProperty(), blender::IDP_EnumItemFind(), blender::IDP_EqualsProperties_ex(), blender::idp_foreach_property_recurse(), blender::idp_free_property_content_recurse(), blender::IDP_FreeGroup(), blender::IDP_FreeIDPArray(), blender::IDP_FreeString(), blender::idp_from_DatablockPointer(), blender::idp_from_PyBool(), blender::idp_from_PyBytes(), blender::idp_from_PyFloat(), blender::idp_from_PyLong(), blender::idp_from_PySequence(), blender::idp_from_PySequence_Buffer(), blender::idp_from_PySequence_Fast(), blender::idp_from_PyUnicode(), blender::idp_generic_copy(), blender::IDP_GetIndexArray(), blender::IDP_GetPropertyFromGroup(), blender::idp_group_children_map_ensure(), blender::IDP_group_lookup_bool(), blender::IDP_group_lookup_float(), blender::IDP_group_lookup_float_array(), blender::IDP_group_lookup_int(), blender::IDP_group_lookup_string(), blender::IDP_MergeGroup_ex(), blender::IDP_New(), blender::IDP_NewIDPArray(), blender::IDP_NewStringMaxSize(), blender::IDP_RemoveFromGroup(), blender::IDP_ReplaceGroupInGroup(), blender::IDP_ReplaceInGroup_ex(), blender::idp_repr_fn_recursive(), blender::IDP_ResizeIDPArray(), blender::IDP_SetIndexArray(), blender::IDP_SyncGroupTypes(), blender::IDP_SyncGroupValues(), blender::IDP_type_str(), blender::IDP_ui_data_type(), blender::IDP_WriteIDPArray(), blender::IDP_WriteProperty_OnlyData(), blender::bke::idprop::IDPGroupSerializer::idprop_to_dictionary(), blender::idprop_ui_data_to_dict_bool(), blender::idprop_ui_data_to_dict_float(), blender::idprop_ui_data_to_dict_int(), blender::idproperties_fix_groups_lengths_recurse(), blender::idproperty_find_ui_container(), blender::idprops_ensure_named_group(), blender::IMB_metadata_get_field(), blender::IMB_metadata_set_field(), blender::animrig::is_idproperty_keyable(), blender::openexr_header_metadata_global(), blender::bke::ProjectVariable::ProjectVariable(), blender::read_ui_data(), blender::rna_idp_path(), blender::rna_idproperty_find(), blender::RNA_pointer_as_string(), blender::rna_property_rna_or_id_get(), blender::rna_system_idproperty_find(), blender::ed::space_node::search_link_ops_for_asset_metadata(), blender::bke::ProjectVariable::string_subtype_set(), blender::sync_system_properties(), blender::bke::idprop::tests::TEST_F(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::idprop::tests::test_idprop(), blender::bke::ProjectVariable::type_get(), blender::version_bonelayers_to_bonecollections(), blender::version_geometry_nodes_add_attribute_input_settings(), blender::version_idproperty_move_data_float(), blender::version_idproperty_move_data_int(), blender::version_idproperty_move_data_string(), blender::version_idproperty_ui_data(), blender::version_mesh_crease_generic(), blender::io::alembic::CustomPropertiesExporter::write_all(), blender::write_ui_data(), and blender::io::usd::USDAbstractWriter::write_user_properties().

◆ ui_data


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