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,436 Lines • ▼ Show 20 Lines | static EnumPropertyItem mode_items[] = { | ||||
| 0, | 0, | ||||
| "Length", | "Length", | ||||
| "Find sample positions on the curve using a distance from its beginning"}, | "Find sample positions on the curve using a distance from its beginning"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryCurveSample", "storage"); | RNA_def_struct_sdna_from(srna, "NodeGeometryCurveSample", "storage"); | ||||
| PropertyRNA *prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | PropertyRNA *prop; | ||||
| 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 for sampling input"); | RNA_def_property_ui_text(prop, "Mode", "Method for sampling input"); | ||||
| 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, "use_all_curves", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "All Curves", | |||||
| "Sample lengths based on the total lengh of all curves, rather than " | |||||
| "using a length inside each selected curve"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| prop = RNA_def_property(srna, "data_type", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_enum_attribute_type_items); | |||||
| RNA_def_property_enum_funcs( | |||||
| prop, NULL, NULL, "rna_GeometryNodeAttributeType_type_with_socket_itemf"); | |||||
| RNA_def_property_enum_default(prop, CD_PROP_FLOAT); | |||||
| RNA_def_property_ui_text(prop, "Data Type", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| } | } | ||||
| static void def_geo_triangulate(StructRNA *srna) | static void def_geo_triangulate(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem rna_node_geometry_triangulate_quad_method_items[] = { | static const EnumPropertyItem rna_node_geometry_triangulate_quad_method_items[] = { | ||||
| {GEO_NODE_TRIANGULATE_QUAD_BEAUTY, | {GEO_NODE_TRIANGULATE_QUAD_BEAUTY, | ||||
| ▲ Show 20 Lines • Show All 3,589 Lines • Show Last 20 Lines | |||||