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,404 Lines • ▼ Show 20 Lines | static void def_geo_mesh_to_points(StructRNA *srna) | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_geo_curve_trim(StructRNA *srna) | static void def_geo_curve_trim(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem mode_items[] = { | static EnumPropertyItem mode_items[] = { | ||||
| {GEO_NODE_CURVE_SAMPLE_FACTOR, | {GEO_NODE_CURVE_TRIM_FACTOR, | ||||
| "FACTOR", | "FACTOR", | ||||
| 0, | 0, | ||||
| "Factor", | "Factor", | ||||
| "Find the endpoint positions using a factor of each spline's length"}, | "Find the endpoint positions using a factor of each spline's length"}, | ||||
| {GEO_NODE_CURVE_RESAMPLE_LENGTH, | {GEO_NODE_CURVE_TRIM_LENGTH, | ||||
| "LENGTH", | "LENGTH", | ||||
| 0, | 0, | ||||
| "Length", | "Length", | ||||
| "Find the endpoint positions using a length from the start of each spline"}, | "Find the endpoint positions using a length from the start of each spline"}, | ||||
| {GEO_NODE_CURVE_TRIM_LOOSE_ENDS, | |||||
| "LOOSE_ENDS", | |||||
| 0, | |||||
| "Loose Ends", | |||||
| "Trim loose ends from start and end of spline"}, | |||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryCurveTrim", "storage"); | RNA_def_struct_sdna_from(srna, "NodeGeometryCurveTrim", "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", "How to find endpoint positions for the trimmed spline"); | RNA_def_property_ui_text(prop, "Mode", "How to find endpoint positions for the trimmed spline"); | ||||
| ▲ Show 20 Lines • Show All 2,615 Lines • Show Last 20 Lines | |||||