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,888 Lines • ▼ Show 20 Lines | static void def_geo_point_distribute(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "distribute_method", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "distribute_method", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | RNA_def_property_enum_sdna(prop, NULL, "custom1"); | ||||
| RNA_def_property_enum_items(prop, rna_node_geometry_point_distribute_method_items); | RNA_def_property_enum_items(prop, rna_node_geometry_point_distribute_method_items); | ||||
| RNA_def_property_enum_default(prop, GEO_NODE_POINT_DISTRIBUTE_RANDOM); | RNA_def_property_enum_default(prop, GEO_NODE_POINT_DISTRIBUTE_RANDOM); | ||||
| RNA_def_property_ui_text(prop, "Distribution Method", "Method to use for scattering points"); | RNA_def_property_ui_text(prop, "Distribution Method", "Method to use for scattering points"); | ||||
| 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_extrude_mesh(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| static const EnumPropertyItem mode_items[] = { | |||||
| {GEO_NODE_EXTRUDE_MESH_VERTICES, "VERTICES", 0, "Vertices", ""}, | |||||
| {GEO_NODE_EXTRUDE_MESH_EDGES, "EDGES", 0, "Edges", ""}, | |||||
| {GEO_NODE_EXTRUDE_MESH_FACES, "FACES", 0, "Faces", ""}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryExtrudeMesh", "storage"); | |||||
| prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "mode"); | |||||
| RNA_def_property_enum_items(prop, mode_items); | |||||
| RNA_def_property_enum_default(prop, GEO_NODE_EXTRUDE_MESH_FACES); | |||||
| RNA_def_property_ui_text(prop, "Mode", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_geo_distribute_points_on_faces(StructRNA *srna) | static void def_geo_distribute_points_on_faces(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem rna_node_geometry_distribute_points_on_faces_mode_items[] = { | static const EnumPropertyItem rna_node_geometry_distribute_points_on_faces_mode_items[] = { | ||||
| {GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_RANDOM, | {GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_RANDOM, | ||||
| "RANDOM", | "RANDOM", | ||||
| 0, | 0, | ||||
| ▲ Show 20 Lines • Show All 3,647 Lines • Show Last 20 Lines | |||||