diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-02 22:47:23 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-02 23:44:05 +0300 |
commit | 8d1e5334ece913bc1eeb18f3eb9ec7b68c6a187f (patch) | |
tree | dde0d3efda5e63483ca2b63ec1b7f5753ad4170e /source/blender/editors/space_node/node_intern.hh | |
parent | ab6702a40fdfbdec08d9d75676db076546de84d5 (diff) |
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.
Diffstat (limited to 'source/blender/editors/space_node/node_intern.hh')
-rw-r--r-- | source/blender/editors/space_node/node_intern.hh | 9 |
1 files changed, 3 insertions, 6 deletions
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<float2, 4> &points); void draw_nodespace_back_pix(const bContext &C, |