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_points_to_volume(StructRNA *srna) | static void def_geo_legacy_points_to_volume(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| 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_points_to_volume(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| static EnumPropertyItem resolution_mode_items[] = { | |||||
| {GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_AMOUNT, | |||||
| "VOXEL_AMOUNT", | |||||
| 0, | |||||
| "Amount", | |||||
| "Specify the approximate number of voxels along the diagonal"}, | |||||
| {GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_SIZE, | |||||
| "VOXEL_SIZE", | |||||
| 0, | |||||
| "Size", | |||||
| "Specify the voxel side length"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryPointsToVolume", "storage"); | |||||
| prop = RNA_def_property(srna, "resolution_mode", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, resolution_mode_items); | |||||
| RNA_def_property_ui_text(prop, "Resolution Mode", "How the voxel size is specified"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| } | |||||
| static void def_geo_collection_info(StructRNA *srna) | static void def_geo_collection_info(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| Context not available. | |||||