Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 9,784 Lines • ▼ Show 20 Lines | static void def_geo_point_rotate(StructRNA *srna) | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | ||||
| prop = RNA_def_property(srna, "input_type_rotation", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "input_type_rotation", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_vector); | RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_vector); | ||||
| RNA_def_property_ui_text(prop, "Input Type Rotation", ""); | RNA_def_property_ui_text(prop, "Input Type Rotation", ""); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | ||||
| } | } | ||||
| static void def_fn_rotate_euler(StructRNA *srna) | |||||
| { | |||||
| static const EnumPropertyItem type_items[] = { | |||||
| {FN_NODE_ROTATE_EULER_TYPE_AXIS_ANGLE, | |||||
| "AXIS_ANGLE", | |||||
| ICON_NONE, | |||||
| "Axis Angle", | |||||
| "Rotate around an axis by an angle"}, | |||||
| {FN_NODE_ROTATE_EULER_TYPE_EULER, | |||||
| "EULER", | |||||
| ICON_NONE, | |||||
| "Euler", | |||||
| "Rotate around the X, Y, and Z axes"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| static const EnumPropertyItem space_items[] = { | |||||
| {FN_NODE_ROTATE_EULER_SPACE_OBJECT, | |||||
| "OBJECT", | |||||
| ICON_NONE, | |||||
| "Object", | |||||
| "Rotate points in the local space of the object"}, | |||||
| {FN_NODE_ROTATE_EULER_SPACE_POINT, | |||||
| "POINT", | |||||
| ICON_NONE, | |||||
| "Point", | |||||
| "Rotate every point in its local space (as defined by the 'rotation' attribute)"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| PropertyRNA *prop; | |||||
| prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | |||||
| RNA_def_property_enum_items(prop, type_items); | |||||
| RNA_def_property_ui_text(prop, "Type", "Method used to describe the rotation"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| prop = RNA_def_property(srna, "space", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "custom2"); | |||||
| RNA_def_property_enum_items(prop, space_items); | |||||
| RNA_def_property_ui_text(prop, "Space", "Base orientation of the points"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_geo_align_rotation_to_vector(StructRNA *srna) | static void def_geo_align_rotation_to_vector(StructRNA *srna) | ||||
| { | { | ||||
| static const EnumPropertyItem axis_items[] = { | static const EnumPropertyItem axis_items[] = { | ||||
| {GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_X, | {GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_X, | ||||
| "X", | "X", | ||||
| ICON_NONE, | ICON_NONE, | ||||
| "X", | "X", | ||||
| "Align the X axis with the vector"}, | "Align the X axis with the vector"}, | ||||
| ▲ Show 20 Lines • Show All 2,842 Lines • Show Last 20 Lines | |||||