Blender V4.3
rna_rna.cc File Reference
#include <cstdlib>
#include <CLG_log.h>
#include "DNA_ID.h"
#include "BLI_utildefines.h"
#include "RNA_access.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_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_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 linear space"}, \
{PROP_TRANSLATION, "TRANSLATION", 0, "Translation", "Color in the gamma corrected space"}, \
{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, "Gamma-Corrected Color", ""}, \
{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:168
@ PROP_DIRECTION
Definition RNA_types.hh:165
@ PROP_XYZ
Definition RNA_types.hh:172
@ PROP_ACCELERATION
Definition RNA_types.hh:167
@ PROP_LAYER_MEMBER
Definition RNA_types.hh:181
@ PROP_COLOR
Definition RNA_types.hh:163
@ PROP_AXISANGLE
Definition RNA_types.hh:171
@ PROP_EULER
Definition RNA_types.hh:169
@ PROP_COORDS
Definition RNA_types.hh:177
@ PROP_COLOR_GAMMA
Definition RNA_types.hh:175
@ PROP_TRANSLATION
Definition RNA_types.hh:164
@ PROP_XYZ_LENGTH
Definition RNA_types.hh:173
@ PROP_LAYER
Definition RNA_types.hh:180
@ PROP_QUATERNION
Definition RNA_types.hh:170
@ PROP_VELOCITY
Definition RNA_types.hh:166

Definition at line 86 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_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_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:156
@ PROP_DISTANCE
Definition RNA_types.hh:159
@ PROP_TEMPERATURE
Definition RNA_types.hh:187
@ PROP_POWER
Definition RNA_types.hh:184
@ PROP_PIXEL
Definition RNA_types.hh:151
@ PROP_ANGLE
Definition RNA_types.hh:155
@ PROP_TIME_ABSOLUTE
Definition RNA_types.hh:157
@ PROP_DISTANCE_CAMERA
Definition RNA_types.hh:160
@ PROP_COLOR_TEMPERATURE
Definition RNA_types.hh:193
@ PROP_PERCENTAGE
Definition RNA_types.hh:153
@ PROP_FREQUENCY
Definition RNA_types.hh:195
@ PROP_FACTOR
Definition RNA_types.hh:154
@ PROP_UNSIGNED
Definition RNA_types.hh:152
@ PROP_WAVELENGTH
Definition RNA_types.hh:190

Definition at line 68 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:143
@ PROP_FILENAME
Definition RNA_types.hh:141
@ PROP_PASSWORD
Definition RNA_types.hh:146
@ PROP_DIRPATH
Definition RNA_types.hh:140
@ PROP_FILEPATH
Definition RNA_types.hh:139

Definition at line 61 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 178 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_PROPORTIONAL_DESCR

auto PROP_PROPORTIONAL_DESCR = ""
staticconstexpr

Definition at line 175 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 29 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_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_ui_layout(), RNA_api_workspace_tool(), rna_def_area(), rna_def_node_interface_socket(), rna_def_node_socket_interface_menu(), rna_def_node_socket_menu(), rna_generate_property(), SEQUENCER_OT_change_scene(), SEQUENCER_OT_mask_strip_add(), SEQUENCER_OT_movieclip_strip_add(), SEQUENCER_OT_scene_strip_add(), 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(), and WM_operator_properties_filesel().

◆ rna_enum_property_flag_enum_items

const EnumPropertyItem rna_enum_property_flag_enum_items[]
Initial value:
= {
{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:220
@ PROP_ENUM_FLAG
Definition RNA_types.hh:293
@ PROP_LIB_EXCEPTION
Definition RNA_types.hh:213
@ PROP_SKIP_SAVE
Definition RNA_types.hh:245
@ PROP_HIDDEN
Definition RNA_types.hh:239
static constexpr auto PROP_HIDDEN_DESCR
Definition rna_rna.cc:163
static constexpr auto PROP_ENUM_FLAG_DESCR
Definition rna_rna.cc:178
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 201 of file rna_rna.cc.

Referenced by BPy_EnumProperty().

◆ rna_enum_property_flag_items

const EnumPropertyItem rna_enum_property_flag_items[]
Initial value:
= {
{PROP_HIDDEN, "HIDDEN", 0, "Hidden", PROP_HIDDEN_DESCR},
{PROP_SKIP_SAVE, "SKIP_SAVE", 0, "Skip Save", PROP_SKIP_SAVE_DESCR},
{PROP_SKIP_PRESET, "SKIP_PRESET", 0, "Skip Preset", PROP_SKIP_PRESET_DESCR},
{PROP_ANIMATABLE, "ANIMATABLE", 0, "Animatable", PROP_ANIMATABLE_DESCR},
{PROP_LIB_EXCEPTION, "LIBRARY_EDITABLE", 0, "Library Editable", PROP_LIB_EXCEPTION_DESCR},
"PROPORTIONAL",
0,
"Adjust values proportionally to each other",
"TEXTEDIT_UPDATE",
0,
"Update on every keystroke in textedit 'mode'",
{PROP_PATH_OUTPUT, "OUTPUT_PATH", 0, "Output Path", PROP_PATH_OUTPUT_DESCR},
{0, nullptr, 0, nullptr, nullptr},
}
@ PROP_PATH_OUTPUT
Definition RNA_types.hh:340
@ PROP_PROPORTIONAL
Definition RNA_types.hh:250
@ PROP_SKIP_PRESET
Definition RNA_types.hh:343
@ PROP_TEXTEDIT_UPDATE
Definition RNA_types.hh:227
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
static constexpr auto PROP_TEXTEDIT_UPDATE_DESCR
Definition rna_rna.cc:176
static constexpr auto PROP_PROPORTIONAL_DESCR
Definition rna_rna.cc:175
static constexpr auto PROP_SKIP_PRESET_DESCR
Definition rna_rna.cc:170
static constexpr auto PROP_PATH_OUTPUT_DESCR
Definition rna_rna.cc:177

Definition at line 180 of file rna_rna.cc.

Referenced by BPy_BoolProperty(), BPy_BoolVectorProperty(), BPy_CollectionProperty(), BPy_FloatProperty(), BPy_FloatVectorProperty(), BPy_IntProperty(), BPy_IntVectorProperty(), BPy_PointerProperty(), and BPy_StringProperty().

◆ 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:355

Definition at line 210 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:380
@ PROPOVERRIDE_NO_PROP_NAME
Definition RNA_types.hh:388
static const EnumPropertyItem rna_enum_property_item_library_overridable
Definition rna_rna.cc:210

Definition at line 224 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:584
@ PROP_STRING_SEARCH_SORT
Definition RNA_types.hh:577

Definition at line 239 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:136
#define RNA_ENUM_PROPERTY_SUBTYPE_STRING_ITEMS
Definition rna_rna.cc:61
#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ARRAY_ITEMS
Definition rna_rna.cc:86
#define RNA_ENUM_PROPERTY_SUBTYPE_NUMBER_ITEMS
Definition rna_rna.cc:68

Definition at line 127 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 120 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 113 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 106 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:67
@ PROP_BOOLEAN
Definition RNA_types.hh:65
@ PROP_ENUM
Definition RNA_types.hh:69
@ PROP_INT
Definition RNA_types.hh:66
@ PROP_STRING
Definition RNA_types.hh:68
@ PROP_POINTER
Definition RNA_types.hh:70
@ PROP_COLLECTION
Definition RNA_types.hh:71

Definition at line 46 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:79
@ PROP_UNIT_POWER
Definition RNA_types.hh:87
@ PROP_UNIT_ROTATION
Definition RNA_types.hh:81
@ PROP_UNIT_FREQUENCY
Definition RNA_types.hh:91
@ PROP_UNIT_WAVELENGTH
Definition RNA_types.hh:89
@ PROP_UNIT_VELOCITY
Definition RNA_types.hh:84
@ PROP_UNIT_LENGTH
Definition RNA_types.hh:77
@ PROP_UNIT_NONE
Definition RNA_types.hh:76
@ PROP_UNIT_ACCELERATION
Definition RNA_types.hh:85
@ PROP_UNIT_AREA
Definition RNA_types.hh:78
@ PROP_UNIT_TIME
Definition RNA_types.hh:82
@ PROP_UNIT_CAMERA
Definition RNA_types.hh:86
@ PROP_UNIT_TEMPERATURE
Definition RNA_types.hh:88
@ PROP_UNIT_MASS
Definition RNA_types.hh:80
@ PROP_UNIT_TIME_ABSOLUTE
Definition RNA_types.hh:83
@ PROP_UNIT_COLOR_TEMPERATURE
Definition RNA_types.hh:90

Definition at line 142 of file rna_rna.cc.

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