diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-02 23:25:34 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-02 23:44:05 +0300 |
commit | 40d815dff6515834c1bce40c0a34cc80b39655d5 (patch) | |
tree | 8ee119bb08149bdd1da998db811a96c8b500b77d /source/blender/editors/space_node/node_intern.hh | |
parent | 21e235afc3e5149223487fc5b5f4076530d6c13c (diff) |
Cleanup: Further split of node link Bezier calculation function
Now dragged handles are handled separately, and the function returns a
statically sized array by value. The functions are also renamed to be
more consistent with curve naming elsewhere in Blender.
Diffstat (limited to 'source/blender/editors/space_node/node_intern.hh')
-rw-r--r-- | source/blender/editors/space_node/node_intern.hh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh index 52e6521370e..5b376618912 100644 --- a/source/blender/editors/space_node/node_intern.hh +++ b/source/blender/editors/space_node/node_intern.hh @@ -229,16 +229,12 @@ void node_draw_link_bezier(const bContext &C, int th_col2, int th_col3, bool selected); -bool node_link_bezier_points(const SpaceNode *snode, - const bNodeLink &link, - float coord_array[][2], - int resol); +bool node_link_bezier_points_evaluated(const bNodeLink &link, float coord_array[][2], int resol); /** * Return quadratic beziers points for a given nodelink. */ -bool node_link_bezier_handles(const SpaceNode *snode, - const bNodeLink &ink, - std::array<float2, 4> &points); +std::array<float2, 4> node_link_bezier_points(const bNodeLink &link); + void draw_nodespace_back_pix(const bContext &C, ARegion ®ion, SpaceNode &snode, |