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 8,883 Lines • ▼ Show 20 Lines | static void def_geo_object_info(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "transform_space", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "transform_space", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_node_geometry_object_info_transform_space_items); | RNA_def_property_enum_items(prop, rna_node_geometry_object_info_transform_space_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Transform Space", "The transformation of the vector and geometry outputs"); | prop, "Transform Space", "The transformation of the vector and geometry outputs"); | ||||
| 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) | |||||
| { | |||||
| 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"}, | |||||
HooglyBoogly: `Desired number of voxels along one axis` -> `Specify the numer of voxels along each axis` | |||||
| {GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_SIZE, | |||||
| "VOXEL_SIZE", | |||||
| 0, | |||||
| "Size", | |||||
| "Specify the voxel side length"}, | |||||
Not Done Inline ActionsDesired voxel side length -> Specify the voxel side length HooglyBoogly: `Desired voxel side length` -> `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"); | |||||
Not Done Inline ActionsMode for how the desired voxel size is specified -> How the voxel size is specified HooglyBoogly: `Mode for how the desired voxel size is specified` -> `How the voxel size is specified` | |||||
| prop = RNA_def_property(srna, "input_type_radius", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_float); | |||||
| RNA_def_property_ui_text(prop, "Radius Input Type", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| } | |||||
| /* -------------------------------------------------------------------------- */ | /* -------------------------------------------------------------------------- */ | ||||
| static void rna_def_shader_node(BlenderRNA *brna) | static void rna_def_shader_node(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| srna = RNA_def_struct(brna, "ShaderNode", "NodeInternal"); | srna = RNA_def_struct(brna, "ShaderNode", "NodeInternal"); | ||||
| RNA_def_struct_ui_text(srna, "Shader Node", "Material shader node"); | RNA_def_struct_ui_text(srna, "Shader Node", "Material shader node"); | ||||
| ▲ Show 20 Lines • Show All 1,912 Lines • Show Last 20 Lines | |||||
Desired number of voxels along one axis -> Specify the numer of voxels along each axis