diff options
Diffstat (limited to 'source/blender/editors/space_node/node_relationships.cc')
-rw-r--r-- | source/blender/editors/space_node/node_relationships.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/space_node/node_relationships.cc b/source/blender/editors/space_node/node_relationships.cc index aac05fb1d25..c1f18e16d70 100644 --- a/source/blender/editors/space_node/node_relationships.cc +++ b/source/blender/editors/space_node/node_relationships.cc @@ -137,8 +137,7 @@ static void pick_input_link_by_link_intersect(const bContext &C, LISTBASE_FOREACH (bNodeLink *, link, &snode->edittree->links) { if (link->tosock == socket) { /* Test if the cursor is near a link. */ - std::array<float2, 4> points; - node_link_bezier_handles(snode, *link, points); + const std::array<float2, 4> points = node_link_bezier_points(*link); std::array<float2, NODE_LINK_RESOL + 1> data; BKE_curve_forward_diff_bezier(points[0].x, @@ -1325,7 +1324,7 @@ static bool node_links_intersect(bNodeLink &link, const float mcoords[][2], int { float coord_array[NODE_LINK_RESOL + 1][2]; - if (node_link_bezier_points(nullptr, link, coord_array, NODE_LINK_RESOL)) { + if (node_link_bezier_points_evaluated(link, coord_array, NODE_LINK_RESOL)) { for (int i = 0; i < tot - 1; i++) { for (int b = 0; b < NODE_LINK_RESOL; b++) { if (isect_seg_seg_v2(mcoords[i], mcoords[i + 1], coord_array[b], coord_array[b + 1]) > 0) { @@ -1965,7 +1964,7 @@ void ED_node_link_intersect_test(ScrArea *area, int test) continue; } - if (node_link_bezier_points(nullptr, *link, coord_array, NODE_LINK_RESOL)) { + if (node_link_bezier_points_evaluated(*link, coord_array, NODE_LINK_RESOL)) { float dist = FLT_MAX; /* loop over link coords to find shortest dist to |