Blender V5.0
rna_rna.cc File Reference
#include <cstdlib>
#include <CLG_log.h>
#include "BLT_translation.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "rna_internal.hh"

Go to the source code of this file.

Functions

static void rna_def_struct (BlenderRNA *brna)
static void rna_def_property (BlenderRNA *brna)
static void rna_def_function (BlenderRNA *brna)
static void rna_def_number_property (StructRNA *srna, PropertyType type)
static void rna_def_string_property (StructRNA *srna)
static void rna_def_enum_property (BlenderRNA *brna, StructRNA *srna)
static void rna_def_pointer_property (StructRNA *srna, PropertyType type)
static void rna_def_rna_primitive (BlenderRNA *brna)
void RNA_def_rna (BlenderRNA *brna)

Variables

Generic Enum's
const EnumPropertyItem rna_enum_dummy_NULL_items []
const EnumPropertyItem rna_enum_dummy_DEFAULT_items []

RNA Enum's

#define RNA_ENUM_PROPERTY_SUBTYPE_STRING_ITEMS
#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ITEMS
#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ARRAY_ITEMS
const EnumPropertyItem rna_enum_property_type_items []
const EnumPropertyItem rna_enum_property_subtype_string_items []
const EnumPropertyItem rna_enum_property_subtype_number_items []
const EnumPropertyItem rna_enum_property_subtype_number_array_items []
const EnumPropertyItem rna_enum_property_subtype_items []
const EnumPropertyItem rna_enum_property_unit_items []
static constexpr auto PROP_READ_ONLY_DESCR = "When set, the property cannot be edited"
static constexpr auto PROP_HIDDEN_DESCR
static constexpr auto PROP_SKIP_SAVE_DESCR
static constexpr auto PROP_SKIP_PRESET_DESCR = "Do not write in presets"
static constexpr auto PROP_ANIMATABLE_DESCR = ""
static constexpr auto PROP_LIB_EXCEPTION_DESCR
static constexpr auto PROP_PROPORTIONAL_DESCR = ""
static constexpr auto PROP_TEXTEDIT_UPDATE_DESCR = ""
static constexpr auto PROP_PATH_OUTPUT_DESCR = ""
static constexpr auto PROP_PATH_RELATIVE_DESCR
static constexpr auto PROP_PATH_SUPPORTS_TEMPLATES_DESCR
static constexpr auto PROP_ENUM_FLAG_DESCR = ""
const EnumPropertyItem rna_enum_property_flag_items []
const EnumPropertyItem rna_enum_property_flag_enum_items []
static const EnumPropertyItem rna_enum_property_item_library_overridable
const EnumPropertyItem rna_enum_property_override_flag_items []
const EnumPropertyItem rna_enum_property_override_flag_collection_items []
const EnumPropertyItem rna_enum_property_string_search_flag_items []

Macro Definition Documentation

◆ RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ARRAY_ITEMS

#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ARRAY_ITEMS
Value:
{PROP_COLOR, "COLOR", 0, "Linear Color", "Color in the scene linear working color space"}, \
{PROP_TRANSLATION, "TRANSLATION", 0, "Translation", ""}, \
{PROP_DIRECTION, "DIRECTION", 0, "Direction", ""}, \
{PROP_VELOCITY, "VELOCITY", 0, "Velocity", ""}, \
{PROP_ACCELERATION, "ACCELERATION", 0, "Acceleration", ""}, \
{PROP_MATRIX, "MATRIX", 0, "Matrix", ""}, \
{PROP_EULER, "EULER", 0, "Euler Angles", "Euler rotation angles in radians"}, \
{PROP_QUATERNION, "QUATERNION", 0, "Quaternion", "Quaternion rotation (affects NLA blending)"}, \
{PROP_AXISANGLE, "AXISANGLE", 0, "Axis-Angle", "Angle and axis to rotate around"}, \
{PROP_XYZ, "XYZ", 0, "XYZ", ""}, \
{PROP_XYZ_LENGTH, "XYZ_LENGTH", 0, "XYZ Length", ""}, \
{PROP_COLOR_GAMMA, "COLOR_GAMMA", 0, "sRGB Color", "Color in sRGB color space (mainly for user interface colors)"}, \
{PROP_COORDS, "COORDINATES", 0, "Coordinates", ""}, \
/* Boolean. */ \
{PROP_LAYER, "LAYER", 0, "Layer", ""}, \
{PROP_LAYER_MEMBER, "LAYER_MEMBER", 0, "Layer Member", ""}
@ PROP_MATRIX
Definition RNA_types.hh:265
@ PROP_DIRECTION
Definition RNA_types.hh:262
@ PROP_XYZ
Definition RNA_types.hh:269
@ PROP_ACCELERATION
Definition RNA_types.hh:264
@ PROP_LAYER_MEMBER
Definition RNA_types.hh:278
@ PROP_COLOR
Definition RNA_types.hh:260
@ PROP_AXISANGLE
Definition RNA_types.hh:268
@ PROP_EULER
Definition RNA_types.hh:266
@ PROP_COORDS
Definition RNA_types.hh:274
@ PROP_COLOR_GAMMA
Definition RNA_types.hh:272
@ PROP_TRANSLATION
Definition RNA_types.hh:261
@ PROP_XYZ_LENGTH
Definition RNA_types.hh:270
@ PROP_LAYER
Definition RNA_types.hh:277
@ PROP_QUATERNION
Definition RNA_types.hh:267
@ PROP_VELOCITY
Definition RNA_types.hh:263

Definition at line 85 of file rna_rna.cc.

◆ RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ITEMS

#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ITEMS
Value:
{PROP_PIXEL, "PIXEL", 0, "Pixel", "A distance on screen"}, \
{PROP_PIXEL_DIAMETER, "PIXEL_DIAMETER", 0, "Pixel", "A distance on screen, specifically representing a diameter value"}, \
{PROP_UNSIGNED, "UNSIGNED", 0, "Unsigned", ""}, \
{PROP_PERCENTAGE, "PERCENTAGE", 0, "Percentage", "A percentage between 0 and 100"}, \
{PROP_FACTOR, "FACTOR", 0, "Factor", "A factor between 0.0 and 1.0"}, \
{PROP_ANGLE, "ANGLE", 0, "Angle", "A rotational value specified in radians"}, \
{PROP_TIME, "TIME", 0, "Time (Scene Relative)", \
"Time specified in frames, converted to seconds based on scene frame rate"}, \
{PROP_TIME_ABSOLUTE, "TIME_ABSOLUTE", 0, "Time (Absolute)", \
"Time specified in seconds, independent of the scene"}, \
{PROP_DISTANCE, "DISTANCE", 0, "Distance", "A distance between two points"}, \
{PROP_DISTANCE_DIAMETER, "DISTANCE_DIAMETER", 0, "Distance", "A distance between two points, specifically representing a diameter value"}, \
{PROP_DISTANCE_CAMERA, "DISTANCE_CAMERA", 0, "Camera Distance", ""}, \
{PROP_POWER, "POWER", 0, "Power", ""}, \
{PROP_TEMPERATURE, "TEMPERATURE", 0, "Temperature", ""}, \
{PROP_WAVELENGTH, "WAVELENGTH", 0, "Wavelength", ""}, \
{PROP_COLOR_TEMPERATURE, "COLOR_TEMPERATURE", 0, "Color Temperature", ""}, \
{PROP_FREQUENCY, "FREQUENCY", 0, "Frequency", ""}
@ PROP_TIME
Definition RNA_types.hh:253
@ PROP_DISTANCE
Definition RNA_types.hh:256
@ PROP_TEMPERATURE
Definition RNA_types.hh:284
@ PROP_POWER
Definition RNA_types.hh:281
@ PROP_PIXEL
Definition RNA_types.hh:248
@ PROP_ANGLE
Definition RNA_types.hh:252
@ PROP_TIME_ABSOLUTE
Definition RNA_types.hh:254
@ PROP_DISTANCE_CAMERA
Definition RNA_types.hh:257
@ PROP_PIXEL_DIAMETER
Definition RNA_types.hh:293
@ PROP_COLOR_TEMPERATURE
Definition RNA_types.hh:290
@ PROP_PERCENTAGE
Definition RNA_types.hh:250
@ PROP_FREQUENCY
Definition RNA_types.hh:292
@ PROP_FACTOR
Definition RNA_types.hh:251
@ PROP_UNSIGNED
Definition RNA_types.hh:249
@ PROP_DISTANCE_DIAMETER
Definition RNA_types.hh:294
@ PROP_WAVELENGTH
Definition RNA_types.hh:287

Definition at line 65 of file rna_rna.cc.

◆ RNA_ENUM_PROPERTY_SUBTYPE_STRING_ITEMS

#define RNA_ENUM_PROPERTY_SUBTYPE_STRING_ITEMS
Value:
{PROP_FILEPATH, "FILE_PATH", 0, "File Path", ""}, \
{PROP_DIRPATH, "DIR_PATH", 0, "Directory Path", ""}, \
{PROP_FILENAME, "FILE_NAME", 0, "File Name", ""}, \
{PROP_BYTESTRING, "BYTE_STRING", 0, "Byte String", ""}, \
{PROP_PASSWORD, "PASSWORD", 0, "Password", "A string that is displayed hidden ('********')"}
@ PROP_BYTESTRING
Definition RNA_types.hh:240
@ PROP_FILENAME
Definition RNA_types.hh:238
@ PROP_PASSWORD
Definition RNA_types.hh:243
@ PROP_DIRPATH
Definition RNA_types.hh:237
@ PROP_FILEPATH
Definition RNA_types.hh:236

Definition at line 58 of file rna_rna.cc.

Function Documentation

◆ rna_def_enum_property()

◆ rna_def_function()

◆ rna_def_number_property()

◆ rna_def_pointer_property()

◆ rna_def_property()

◆ RNA_def_rna()

◆ rna_def_rna_primitive()

◆ rna_def_string_property()

◆ rna_def_struct()

Variable Documentation

◆ PROP_ANIMATABLE_DESCR

auto PROP_ANIMATABLE_DESCR = ""
staticconstexpr

Definition at line 171 of file rna_rna.cc.

◆ PROP_ENUM_FLAG_DESCR

auto PROP_ENUM_FLAG_DESCR = ""
staticconstexpr

Definition at line 184 of file rna_rna.cc.

◆ PROP_HIDDEN_DESCR

auto PROP_HIDDEN_DESCR
staticconstexpr
Initial value:
=
"For operators: hide from places in the user interface where Blender would add the property "
"automatically, like Adjust Last Operation. Also this property is not written to presets."

Definition at line 163 of file rna_rna.cc.

◆ PROP_LIB_EXCEPTION_DESCR

auto PROP_LIB_EXCEPTION_DESCR
staticconstexpr
Initial value:
=
"This property can be edited, even when it is used on linked data (which normally is "
"read-only). Note that edits to the property will not be saved to the blend file."

Definition at line 172 of file rna_rna.cc.

◆ PROP_PATH_OUTPUT_DESCR

auto PROP_PATH_OUTPUT_DESCR = ""
staticconstexpr

Definition at line 177 of file rna_rna.cc.

◆ PROP_PATH_RELATIVE_DESCR

auto PROP_PATH_RELATIVE_DESCR
staticconstexpr
Initial value:
=
"This path supports relative prefix \"//\" which is expanded the directory "
"where the current \".blend\" file is located."

Definition at line 178 of file rna_rna.cc.

◆ PROP_PATH_SUPPORTS_TEMPLATES_DESCR

auto PROP_PATH_SUPPORTS_TEMPLATES_DESCR
staticconstexpr
Initial value:
=
"This path supports the \"{variable_name}\" template syntax, which substitutes the "
"value of the referenced variable in place of the template expression"

Definition at line 181 of file rna_rna.cc.

◆ PROP_PROPORTIONAL_DESCR

auto PROP_PROPORTIONAL_DESCR = ""
staticconstexpr

Definition at line 175 of file rna_rna.cc.

◆ PROP_READ_ONLY_DESCR

auto PROP_READ_ONLY_DESCR = "When set, the property cannot be edited"
staticconstexpr

Definition at line 162 of file rna_rna.cc.

◆ PROP_SKIP_PRESET_DESCR

auto PROP_SKIP_PRESET_DESCR = "Do not write in presets"
staticconstexpr

Definition at line 170 of file rna_rna.cc.

◆ PROP_SKIP_SAVE_DESCR

auto PROP_SKIP_SAVE_DESCR
staticconstexpr
Initial value:
=
"For operators: the value of this property will not be remembered between invocations of the "
"operator; instead, each invocation will start by using the default value. Also this "
"property is not written to presets."

Definition at line 166 of file rna_rna.cc.

◆ PROP_TEXTEDIT_UPDATE_DESCR

auto PROP_TEXTEDIT_UPDATE_DESCR = ""
staticconstexpr

Definition at line 176 of file rna_rna.cc.

◆ rna_enum_dummy_DEFAULT_items

◆ rna_enum_dummy_NULL_items

const EnumPropertyItem rna_enum_dummy_NULL_items[]
Initial value:
= {
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 26 of file rna_rna.cc.

Referenced by BPy_EnumProperty(), bpy_prop_enum_itemf_fn(), blender::ed::object::collection_object_active_itemf(), blender::ed::object::COLLECTION_OT_objects_add_active(), blender::ed::object::COLLECTION_OT_objects_remove(), blender::ed::object::COLLECTION_OT_objects_remove_active(), blender::ed::geometry::geometry_attribute_convert_mode_itemf(), blender::ed::geometry::geometry_attribute_domain_itemf(), blender::ed::object::hook_mod_itemf(), MARKER_OT_make_links_scene(), MESH_OT_blend_from_shape(), NLA_OT_actionclip_add(), blender::ed::space_node::NODE_OT_new_node_tree(), blender::ed::object::OBJECT_OT_collection_external_asset_drop(), blender::ed::object::OBJECT_OT_collection_instance_add(), blender::ed::object::OBJECT_OT_collection_link(), blender::ed::object::OBJECT_OT_constraint_add(), blender::ed::object::OBJECT_OT_constraint_add_with_targets(), blender::ed::object::OBJECT_OT_hook_assign(), blender::ed::object::OBJECT_OT_hook_recenter(), blender::ed::object::OBJECT_OT_hook_remove(), blender::ed::object::OBJECT_OT_hook_reset(), blender::ed::object::OBJECT_OT_hook_select(), blender::ed::object::OBJECT_OT_make_links_scene(), blender::ed::object::OBJECT_OT_vertex_group_set_active(), object_select_menu_enum_itemf(), blender::ed::outliner::outliner_data_op_sets_enum_item_fn(), blender::ed::outliner::outliner_id_itemf(), blender::ed::outliner::OUTLINER_OT_action_set(), blender::ed::outliner::OUTLINER_OT_id_remap(), PAINT_OT_project_image(), pyrna_enum_to_py(), RNA_api_workspace_tool(), rna_def_area(), rna_def_main_colorspace(), rna_def_node_socket_interface_menu(), rna_def_node_socket_menu(), rna_def_property_funcs(), rna_def_space_node(), rna_generate_property(), blender::ed::vse::SEQUENCER_OT_change_scene(), blender::ed::vse::SEQUENCER_OT_mask_strip_add(), blender::ed::vse::SEQUENCER_OT_movieclip_strip_add(), blender::ed::vse::SEQUENCER_OT_scene_strip_add(), blender::ed::vse::SEQUENCER_OT_strip_modifier_add(), blender::ed::object::vgroup_itemf(), blender::ed::object::vgroup_operator_subset_select_props(), VIEW3D_OT_bone_select_menu(), VIEW3D_OT_select_menu(), WM_operator_properties_filesel(), and WM_OT_set_working_color_space().

◆ rna_enum_property_flag_enum_items

const EnumPropertyItem rna_enum_property_flag_enum_items[]
Initial value:
= {
{PROP_EDITABLE, "READ_ONLY", 0, "Read Only", PROP_READ_ONLY_DESCR},
{PROP_HIDDEN, "HIDDEN", 0, "Hidden", PROP_HIDDEN_DESCR},
{PROP_SKIP_SAVE, "SKIP_SAVE", 0, "Skip Save", PROP_SKIP_SAVE_DESCR},
{PROP_ANIMATABLE, "ANIMATABLE", 0, "Animatable", PROP_ANIMATABLE_DESCR},
{PROP_LIB_EXCEPTION, "LIBRARY_EDITABLE", 0, "Library Editable", PROP_LIB_EXCEPTION_DESCR},
{PROP_ENUM_FLAG, "ENUM_FLAG", 0, "Enum Flag", PROP_ENUM_FLAG_DESCR},
{0, nullptr, 0, nullptr, nullptr},
}
@ PROP_ANIMATABLE
Definition RNA_types.hh:319
@ PROP_EDITABLE
Definition RNA_types.hh:306
@ PROP_ENUM_FLAG
Definition RNA_types.hh:404
@ PROP_LIB_EXCEPTION
Definition RNA_types.hh:312
@ PROP_SKIP_SAVE
Definition RNA_types.hh:344
@ PROP_HIDDEN
Definition RNA_types.hh:338
static constexpr auto PROP_HIDDEN_DESCR
Definition rna_rna.cc:163
static constexpr auto PROP_ENUM_FLAG_DESCR
Definition rna_rna.cc:184
static constexpr auto PROP_READ_ONLY_DESCR
Definition rna_rna.cc:162
static constexpr auto PROP_ANIMATABLE_DESCR
Definition rna_rna.cc:171
static constexpr auto PROP_SKIP_SAVE_DESCR
Definition rna_rna.cc:166
static constexpr auto PROP_LIB_EXCEPTION_DESCR
Definition rna_rna.cc:172

Only for enum type properties.

Definition at line 230 of file rna_rna.cc.

Referenced by BPy_EnumProperty().

◆ rna_enum_property_flag_items

◆ rna_enum_property_item_library_overridable

const EnumPropertyItem rna_enum_property_item_library_overridable
static
Initial value:
{
"LIBRARY_OVERRIDABLE",
0,
"Library Overridable",
"Make that property editable in library overrides of linked data-blocks.\n"
"NOTE: For a property to be overridable, its whole chain of parent properties must also be "
"defined as overridable"}
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
Definition RNA_types.hh:503

Definition at line 252 of file rna_rna.cc.

◆ rna_enum_property_override_flag_collection_items

const EnumPropertyItem rna_enum_property_override_flag_collection_items[]
Initial value:
= {
"NO_PROPERTY_NAME",
0,
"No Name",
"Do not use the names of the items, only their indices in the collection"},
"USE_INSERTION",
0,
"Use Insertion",
"Allow users to add new items in that collection in library overrides"},
{0, nullptr, 0, nullptr, nullptr},
}
@ PROPOVERRIDE_LIBRARY_INSERTION
Definition RNA_types.hh:528
@ PROPOVERRIDE_NO_PROP_NAME
Definition RNA_types.hh:536
static const EnumPropertyItem rna_enum_property_item_library_overridable
Definition rna_rna.cc:252

Definition at line 266 of file rna_rna.cc.

Referenced by BPy_CollectionProperty().

◆ rna_enum_property_override_flag_items

const EnumPropertyItem rna_enum_property_override_flag_items[]

◆ rna_enum_property_string_search_flag_items

const EnumPropertyItem rna_enum_property_string_search_flag_items[]
Initial value:
= {
{PROP_STRING_SEARCH_SORT, "SORT", 0, "Sort Search Results", ""},
"SUGGESTION",
0,
"Suggestion",
"Search results are suggestions (other values may be entered)"},
{0, nullptr, 0, nullptr, nullptr},
}
@ PROP_STRING_SEARCH_SUGGESTION
Definition RNA_types.hh:792
@ PROP_STRING_SEARCH_SORT
Definition RNA_types.hh:785

Definition at line 281 of file rna_rna.cc.

Referenced by BPy_StringProperty().

◆ rna_enum_property_subtype_items

const EnumPropertyItem rna_enum_property_subtype_items[]
Initial value:
= {
{PROP_NONE, "NONE", 0, "None", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ PROP_NONE
Definition RNA_types.hh:233
#define RNA_ENUM_PROPERTY_SUBTYPE_STRING_ITEMS
Definition rna_rna.cc:58
#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ARRAY_ITEMS
Definition rna_rna.cc:85
#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ITEMS
Definition rna_rna.cc:65

Definition at line 126 of file rna_rna.cc.

Referenced by BPy_IDIDPropertyUIManager_as_dict(), idprop_ui_data_update_base(), blender::bke::node_socket_sub_type_label(), rna_def_property(), and version_idproperty_ui_data().

◆ rna_enum_property_subtype_number_array_items

const EnumPropertyItem rna_enum_property_subtype_number_array_items[]
Initial value:
= {
{PROP_NONE, "NONE", 0, "None", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 119 of file rna_rna.cc.

Referenced by BPy_BoolVectorProperty(), BPy_FloatVectorProperty(), and BPy_IntVectorProperty().

◆ rna_enum_property_subtype_number_items

const EnumPropertyItem rna_enum_property_subtype_number_items[]
Initial value:
= {
{PROP_NONE, "NONE", 0, "None", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 112 of file rna_rna.cc.

Referenced by BPy_BoolProperty(), BPy_FloatProperty(), and BPy_IntProperty().

◆ rna_enum_property_subtype_string_items

const EnumPropertyItem rna_enum_property_subtype_string_items[]
Initial value:
= {
{PROP_NONE, "NONE", 0, "None", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 105 of file rna_rna.cc.

Referenced by BPy_StringProperty().

◆ rna_enum_property_type_items

const EnumPropertyItem rna_enum_property_type_items[]
Initial value:
= {
{PROP_BOOLEAN, "BOOLEAN", 0, "Boolean", ""},
{PROP_INT, "INT", 0, "Integer", ""},
{PROP_FLOAT, "FLOAT", 0, "Float", ""},
{PROP_STRING, "STRING", 0, "String", ""},
{PROP_ENUM, "ENUM", 0, "Enumeration", ""},
{PROP_POINTER, "POINTER", 0, "Pointer", ""},
{PROP_COLLECTION, "COLLECTION", 0, "Collection", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ PROP_FLOAT
Definition RNA_types.hh:164
@ PROP_BOOLEAN
Definition RNA_types.hh:162
@ PROP_ENUM
Definition RNA_types.hh:166
@ PROP_INT
Definition RNA_types.hh:163
@ PROP_STRING
Definition RNA_types.hh:165
@ PROP_POINTER
Definition RNA_types.hh:167
@ PROP_COLLECTION
Definition RNA_types.hh:168

Definition at line 43 of file rna_rna.cc.

Referenced by bpy_gizmotype_target_property_def(), pyrna_prop_str(), and rna_def_property().

◆ rna_enum_property_unit_items

const EnumPropertyItem rna_enum_property_unit_items[]
Initial value:
= {
{PROP_UNIT_NONE, "NONE", 0, "None", ""},
{PROP_UNIT_LENGTH, "LENGTH", 0, "Length", ""},
{PROP_UNIT_AREA, "AREA", 0, "Area", ""},
{PROP_UNIT_VOLUME, "VOLUME", 0, "Volume", ""},
{PROP_UNIT_ROTATION, "ROTATION", 0, "Rotation", ""},
{PROP_UNIT_TIME, "TIME", 0, "Time (Scene Relative)", ""},
{PROP_UNIT_TIME_ABSOLUTE, "TIME_ABSOLUTE", 0, "Time (Absolute)", ""},
{PROP_UNIT_VELOCITY, "VELOCITY", 0, "Velocity", ""},
{PROP_UNIT_ACCELERATION, "ACCELERATION", 0, "Acceleration", ""},
{PROP_UNIT_MASS, "MASS", 0, "Mass", ""},
{PROP_UNIT_CAMERA, "CAMERA", 0, "Camera", ""},
{PROP_UNIT_POWER, "POWER", 0, "Power", ""},
{PROP_UNIT_TEMPERATURE, "TEMPERATURE", 0, "Temperature", ""},
{PROP_UNIT_WAVELENGTH, "WAVELENGTH", 0, "Wavelength", ""},
{PROP_UNIT_COLOR_TEMPERATURE, "COLOR_TEMPERATURE", 0, "Color Temperature", ""},
{PROP_UNIT_FREQUENCY, "FREQUENCY", 0, "Frequency", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ PROP_UNIT_VOLUME
Definition RNA_types.hh:176
@ PROP_UNIT_POWER
Definition RNA_types.hh:184
@ PROP_UNIT_ROTATION
Definition RNA_types.hh:178
@ PROP_UNIT_FREQUENCY
Definition RNA_types.hh:188
@ PROP_UNIT_WAVELENGTH
Definition RNA_types.hh:186
@ PROP_UNIT_VELOCITY
Definition RNA_types.hh:181
@ PROP_UNIT_LENGTH
Definition RNA_types.hh:174
@ PROP_UNIT_NONE
Definition RNA_types.hh:173
@ PROP_UNIT_ACCELERATION
Definition RNA_types.hh:182
@ PROP_UNIT_AREA
Definition RNA_types.hh:175
@ PROP_UNIT_TIME
Definition RNA_types.hh:179
@ PROP_UNIT_CAMERA
Definition RNA_types.hh:183
@ PROP_UNIT_TEMPERATURE
Definition RNA_types.hh:185
@ PROP_UNIT_MASS
Definition RNA_types.hh:177
@ PROP_UNIT_TIME_ABSOLUTE
Definition RNA_types.hh:180
@ PROP_UNIT_COLOR_TEMPERATURE
Definition RNA_types.hh:187

Definition at line 141 of file rna_rna.cc.

Referenced by BPy_FloatProperty(), BPy_FloatVectorProperty(), and rna_def_property().