Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-12-03 19:05:59 +0300
committerHans Goudey <h.goudey@me.com>2021-12-03 19:05:59 +0300
commitcb0fbe1fde4753a8521e3972e5fcaf852ea20f4c (patch)
tree95ab08b491eabad595802d33aa07dfd6ee553a7b /source/blender/editors/space_node/node_draw.cc
parentab927f5ca7a35393ea28de56e7a8d2a938c5de34 (diff)
Cleanup: Use typed enum for node resize direction
Diffstat (limited to 'source/blender/editors/space_node/node_draw.cc')
-rw-r--r--source/blender/editors/space_node/node_draw.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index dcdfd909d9d..6452dc54544 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -2284,7 +2284,7 @@ static void node_draw_hidden(const bContext *C,
node->block = nullptr;
}
-int node_get_resize_cursor(int directions)
+int node_get_resize_cursor(NodeResizeDirection directions)
{
if (directions == 0) {
return WM_CURSOR_DEFAULT;
@@ -2317,7 +2317,7 @@ void node_set_cursor(wmWindow *win, SpaceNode *snode, float cursor[2])
}
}
if (node) {
- int dir = node->typeinfo->resize_area_func(node, cursor[0], cursor[1]);
+ NodeResizeDirection dir = node->typeinfo->resize_area_func(node, cursor[0], cursor[1]);
wmcursor = node_get_resize_cursor(dir);
}
}