From 8df0268e2bac6fce22b1642555474fe8ccc8538d Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 13 Jan 2021 10:10:25 -0600 Subject: Geometry Nodes: Rename "Rotate Points" to "Point Rotate" This is consistent with the other node names, giving (almost) all of the nodes in the "Point" category the same prefix. --- source/blender/editors/space_node/drawnode.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index bf38f6d606a..e30f10915f6 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -3246,9 +3246,7 @@ static void node_geometry_buts_attribute_color_ramp(uiLayout *layout, uiTemplateColorRamp(layout, ptr, "color_ramp", 0); } -static void node_geometry_buts_rotate_points(uiLayout *layout, - bContext *UNUSED(C), - PointerRNA *ptr) +static void node_geometry_buts_point_rotate(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) { NodeGeometryRotatePoints *storage = (NodeGeometryRotatePoints *)((bNode *)ptr->data)->storage; @@ -3256,7 +3254,7 @@ static void node_geometry_buts_rotate_points(uiLayout *layout, uiItemR(layout, ptr, "space", DEFAULT_FLAGS | UI_ITEM_R_EXPAND, NULL, ICON_NONE); uiLayout *col = uiLayoutColumn(layout, false); - if (storage->type == GEO_NODE_ROTATE_POINTS_TYPE_AXIS_ANGLE) { + if (storage->type == GEO_NODE_POINT_ROTATE_TYPE_AXIS_ANGLE) { uiItemR(col, ptr, "input_type_axis", DEFAULT_FLAGS, IFACE_("Axis"), ICON_NONE); uiItemR(col, ptr, "input_type_angle", DEFAULT_FLAGS, IFACE_("Angle"), ICON_NONE); } @@ -3314,8 +3312,8 @@ static void node_geometry_set_butfunc(bNodeType *ntype) case GEO_NODE_ATTRIBUTE_COLOR_RAMP: ntype->draw_buttons = node_geometry_buts_attribute_color_ramp; break; - case GEO_NODE_ROTATE_POINTS: - ntype->draw_buttons = node_geometry_buts_rotate_points; + case GEO_NODE_POINT_ROTATE: + ntype->draw_buttons = node_geometry_buts_point_rotate; break; case GEO_NODE_ALIGN_ROTATION_TO_VECTOR: ntype->draw_buttons = node_geometry_buts_align_rotation_to_vector; -- cgit v1.2.3