From 8d1e5334ece913bc1eeb18f3eb9ec7b68c6a187f Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 2 Sep 2022 14:47:23 -0500 Subject: Cleanup: Split node link draw culling to separate function This was only really used in one place, so better to just do it there rather than requiring another argument for the handle calculation. --- source/blender/editors/space_node/node_intern.hh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source/blender/editors/space_node/node_intern.hh') diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh index 694c67d160b..52e6521370e 100644 --- a/source/blender/editors/space_node/node_intern.hh +++ b/source/blender/editors/space_node/node_intern.hh @@ -229,17 +229,14 @@ void node_draw_link_bezier(const bContext &C, int th_col2, int th_col3, bool selected); -/** If v2d not nullptr, it clips and returns 0 if not visible. */ -bool node_link_bezier_points(const View2D *v2d, - const SpaceNode *snode, +bool node_link_bezier_points(const SpaceNode *snode, const bNodeLink &link, float coord_array[][2], int resol); /** - * Return quadratic beziers points for a given nodelink and clip if v2d is not nullptr. + * Return quadratic beziers points for a given nodelink. */ -bool node_link_bezier_handles(const View2D *v2d, - const SpaceNode *snode, +bool node_link_bezier_handles(const SpaceNode *snode, const bNodeLink &ink, std::array &points); void draw_nodespace_back_pix(const bContext &C, -- cgit v1.2.3