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 526 Lines • ▼ Show 20 Lines | static EnumPropertyItem rna_node_geometry_mesh_circle_fill_type_items[] = { | ||||
| {GEO_NODE_MESH_CIRCLE_FILL_NGON, "NGON", 0, "N-Gon", ""}, | {GEO_NODE_MESH_CIRCLE_FILL_NGON, "NGON", 0, "N-Gon", ""}, | ||||
| {GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN, "TRIANGLE_FAN", 0, "Triangles", ""}, | {GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN, "TRIANGLE_FAN", 0, "Triangles", ""}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| #ifndef RNA_RUNTIME | #ifndef RNA_RUNTIME | ||||
| #endif | #endif | ||||
HooglyBoogly: This can be defined locally inside `def_geo_uv_unwrap` | |||||
| #undef ITEM_ATTRIBUTE | #undef ITEM_ATTRIBUTE | ||||
| #undef ITEM_FLOAT | #undef ITEM_FLOAT | ||||
| #undef ITEM_VECTOR | #undef ITEM_VECTOR | ||||
| #undef ITEM_COLOR | #undef ITEM_COLOR | ||||
| #undef ITEM_BOOLEAN | #undef ITEM_BOOLEAN | ||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| ▲ Show 20 Lines • Show All 9,277 Lines • ▼ Show 20 Lines | static void def_fn_align_euler_to_vector(StructRNA *srna) | ||||
| RNA_def_property_enum_items(prop, pivot_axis_items); | RNA_def_property_enum_items(prop, pivot_axis_items); | ||||
| RNA_def_property_ui_text(prop, "Pivot Axis", "Axis to rotate around"); | RNA_def_property_ui_text(prop, "Pivot Axis", "Axis to rotate around"); | ||||
| 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_object_info(StructRNA *srna) | static void def_geo_object_info(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem rna_node_geometry_object_info_transform_space_items[] = { | static const EnumPropertyItem rna_node_geometry_object_info_transform_space_items[] = { | ||||
Done Inline ActionsThis seems like a tricky one, but _some_ description might be helpful if it's possible. Maybe based on the manual. https://docs.blender.org/manual/en/3.3/modeling/meshes/editing/uv.html#bpy-ops-uv-unwrap HooglyBoogly: This seems like a tricky one, but _some_ description might be helpful if it's possible. Maybe… | |||||
| {GEO_NODE_TRANSFORM_SPACE_ORIGINAL, | {GEO_NODE_TRANSFORM_SPACE_ORIGINAL, | ||||
| "ORIGINAL", | "ORIGINAL", | ||||
| 0, | 0, | ||||
| "Original", | "Original", | ||||
| "Output the geometry relative to the input object transform, and the location, rotation " | "Output the geometry relative to the input object transform, and the location, rotation " | ||||
| "and " | "and " | ||||
| "scale relative to the world origin"}, | "scale relative to the world origin"}, | ||||
| {GEO_NODE_TRANSFORM_SPACE_RELATIVE, | {GEO_NODE_TRANSFORM_SPACE_RELATIVE, | ||||
| "RELATIVE", | "RELATIVE", | ||||
Done Inline Actionsrna_Node_update should be enough if changing this value doesn't change which sockets are available HooglyBoogly: `rna_Node_update` should be enough if changing this value doesn't change which sockets are… | |||||
| 0, | 0, | ||||
| "Relative", | "Relative", | ||||
| "Bring the input object geometry, location, rotation and scale into the modified object, " | "Bring the input object geometry, location, rotation and scale into the modified object, " | ||||
| "maintaining the relative position between the two objects in the scene"}, | "maintaining the relative position between the two objects in the scene"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryObjectInfo", "storage"); | RNA_def_struct_sdna_from(srna, "NodeGeometryObjectInfo", "storage"); | ||||
| Show All 26 Lines | static void def_geo_points_to_volume(StructRNA *srna) | ||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryPointsToVolume", "storage"); | RNA_def_struct_sdna_from(srna, "NodeGeometryPointsToVolume", "storage"); | ||||
| prop = RNA_def_property(srna, "resolution_mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "resolution_mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, resolution_mode_items); | 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_ui_text(prop, "Resolution Mode", "How the voxel size is specified"); | ||||
| 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_uv_unwrap(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| static EnumPropertyItem rna_node_geometry_uv_unwrap_method_items[] = { | |||||
| {GEO_NODE_UV_UNWRAP_METHOD_ANGLE_BASED, | |||||
| "ANGLE_BASED", | |||||
| 0, | |||||
| "Angle Based", | |||||
| "This method gives a good 2D representation of a mesh"}, | |||||
| {GEO_NODE_UV_UNWRAP_METHOD_CONFORMAL, | |||||
| "CONFORMAL", | |||||
| 0, | |||||
| "Conformal", | |||||
| "Uses LSCM (Least Squares Conformal Mapping). This usually gives a less accurate UV " | |||||
| "mapping than Angle Based, but works better for simpler objects"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryUVUnwrap", "storage"); | |||||
| prop = RNA_def_property(srna, "method", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_node_geometry_uv_unwrap_method_items); | |||||
| RNA_def_property_ui_text(prop, "Method", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_geo_collection_info(StructRNA *srna) | static void def_geo_collection_info(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem rna_node_geometry_collection_info_transform_space_items[] = { | static const EnumPropertyItem rna_node_geometry_collection_info_transform_space_items[] = { | ||||
| {GEO_NODE_TRANSFORM_SPACE_ORIGINAL, | {GEO_NODE_TRANSFORM_SPACE_ORIGINAL, | ||||
| "ORIGINAL", | "ORIGINAL", | ||||
| 0, | 0, | ||||
| ▲ Show 20 Lines • Show All 2,995 Lines • Show Last 20 Lines | |||||
This can be defined locally inside def_geo_uv_unwrap