Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
| Context not available. | |||||
| 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_raycast(StructRNA *srna) | static void def_geo_legacy_raycast(StructRNA *srna) | ||||
| { | { | ||||
| static EnumPropertyItem mapping_items[] = { | static EnumPropertyItem mapping_items[] = { | ||||
| {GEO_NODE_RAYCAST_INTERPOLATED, | {GEO_NODE_RAYCAST_INTERPOLATED, | ||||
| Context not available. | |||||
| 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_raycast(StructRNA *srna) | |||||
| { | |||||
| static EnumPropertyItem mapping_items[] = { | |||||
| {GEO_NODE_RAYCAST_INTERPOLATED, | |||||
| "INTERPOLATED", | |||||
| 0, | |||||
| "Interpolated", | |||||
| "Interpolate the attribute from the corners of the hit face"}, | |||||
| {GEO_NODE_RAYCAST_NEAREST, | |||||
| "NEAREST", | |||||
| 0, | |||||
| "Nearest", | |||||
| "Use the attribute value of the closest mesh element"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryRaycast", "storage"); | |||||
| prop = RNA_def_property(srna, "mapping", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, mapping_items); | |||||
| RNA_def_property_ui_text(prop, "Mapping", "Mapping from the target geometry to hit points"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_geo_curve_fill(StructRNA *srna) | static void def_geo_curve_fill(StructRNA *srna) | ||||
| { | { | ||||
| static const EnumPropertyItem mode_items[] = { | static const EnumPropertyItem mode_items[] = { | ||||
| Context not available. | |||||