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,683 Lines • ▼ Show 20 Lines | static void def_geo_legacy_curve_set_handles(StructRNA *srna) | ||||
| 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, rna_node_geometry_curve_handle_side_items); | RNA_def_property_enum_items(prop, rna_node_geometry_curve_handle_side_items); | ||||
| RNA_def_property_ui_text(prop, "Mode", "Whether to update left and right handles"); | RNA_def_property_ui_text(prop, "Mode", "Whether to update left and right handles"); | ||||
| RNA_def_property_flag(prop, PROP_ENUM_FLAG); | RNA_def_property_flag(prop, PROP_ENUM_FLAG); | ||||
| 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_set_handle_positions(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometrySetCurveHandlePositions", "storage"); | |||||
| prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_node_geometry_curve_handle_side_items); | |||||
| RNA_def_property_ui_text(prop, "Mode", "Whether to update left and right handles"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| } | |||||
| static void def_geo_curve_select_handles(StructRNA *srna) | static void def_geo_curve_select_handles(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryCurveSelectHandles", "storage"); | RNA_def_struct_sdna_from(srna, "NodeGeometryCurveSelectHandles", "storage"); | ||||
| prop = RNA_def_property(srna, "handle_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "handle_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "handle_type"); | RNA_def_property_enum_sdna(prop, NULL, "handle_type"); | ||||
| ▲ Show 20 Lines • Show All 3,130 Lines • Show Last 20 Lines | |||||