diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-13 19:10:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-13 19:10:25 +0300 |
commit | 8df0268e2bac6fce22b1642555474fe8ccc8538d (patch) | |
tree | ec3328031432343f78ffd6a26c96c77f96701142 /source/blender/editors | |
parent | 80578a9d54fbff72065fddb5ac61bc9c0288aebd (diff) |
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 10 |
1 files changed, 4 insertions, 6 deletions
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; |