diff options
author | Hans Goudey <h.goudey@me.com> | 2021-12-08 17:44:02 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-12-08 17:44:02 +0300 |
commit | 5b067594738eb1516cc7d253619a432d2b207a30 (patch) | |
tree | d05a70a7d44df2f37dd6d27db74dcbbee5d89fe3 /source/blender/editors/space_node/node_intern.hh | |
parent | 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 (diff) |
Cleanup: Use float2 for node view functions
Though the interfacing with `rctf` becomes slightly more complicated,
this should be more helpful as more of this code usese `float2` instead
of two separate floats.
Diffstat (limited to 'source/blender/editors/space_node/node_intern.hh')
-rw-r--r-- | source/blender/editors/space_node/node_intern.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh index 01de8a11a84..cabe78067f4 100644 --- a/source/blender/editors/space_node/node_intern.hh +++ b/source/blender/editors/space_node/node_intern.hh @@ -116,9 +116,9 @@ void node_draw_space(const bContext &C, ARegion ®ion); void node_set_cursor(wmWindow &win, SpaceNode &snode, const blender::float2 &cursor); /* DPI scaled coords */ -void node_to_view(const bNode &node, float x, float y, float *rx, float *ry); +blender::float2 node_to_view(const bNode &node, const blender::float2 &co); void node_to_updated_rect(const bNode &node, rctf &r_rect); -void node_from_view(const bNode &node, float x, float y, float *rx, float *ry); +blender::float2 node_from_view(const bNode &node, const blender::float2 &co); void node_toolbar_register(ARegionType *art); |