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 10,133 Lines • ▼ Show 20 Lines | static void def_geo_curve_primitive_circle(StructRNA *srna) | ||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryCurvePrimitiveCircle", "storage"); | RNA_def_struct_sdna_from(srna, "NodeGeometryCurvePrimitiveCircle", "storage"); | ||||
| prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, mode_items); | RNA_def_property_enum_items(prop, mode_items); | ||||
| RNA_def_property_ui_text(prop, "Mode", "Method used to determine radius and placement"); | RNA_def_property_ui_text(prop, "Mode", "Method used to determine radius and placement"); | ||||
| 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_geo_curve_primitive_arc(StructRNA *srna) | |||||
| { | |||||
| static const EnumPropertyItem mode_items[] = { | |||||
| {GEO_NODE_CURVE_PRIMITIVE_ARC_TYPE_POINTS, | |||||
| "POINTS", | |||||
| ICON_NONE, | |||||
| "Points", | |||||
| "Define arc by 3 points on circle. Arc is calculated between start and end points"}, | |||||
| {GEO_NODE_CURVE_PRIMITIVE_ARC_TYPE_RADIUS, | |||||
| "RADIUS", | |||||
| ICON_NONE, | |||||
| "Radius", | |||||
| "Define radius with a float"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryCurvePrimitiveArc", "storage"); | |||||
| prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, mode_items); | |||||
| RNA_def_property_ui_text(prop, "Mode", "Method used to determine radius and placement"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| } | |||||
| static void def_geo_curve_primitive_line(StructRNA *srna) | static void def_geo_curve_primitive_line(StructRNA *srna) | ||||
| { | { | ||||
| static const EnumPropertyItem mode_items[] = { | static const EnumPropertyItem mode_items[] = { | ||||
| {GEO_NODE_CURVE_PRIMITIVE_LINE_MODE_POINTS, | {GEO_NODE_CURVE_PRIMITIVE_LINE_MODE_POINTS, | ||||
| "POINTS", | "POINTS", | ||||
| ICON_NONE, | ICON_NONE, | ||||
| "Points", | "Points", | ||||
| "Define the start and end points of the line"}, | "Define the start and end points of the line"}, | ||||
| ▲ Show 20 Lines • Show All 3,328 Lines • Show Last 20 Lines | |||||