Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_draw.c
| Context not available. | |||||
| int node_get_resize_cursor(int directions) | int node_get_resize_cursor(int directions) | ||||
| { | { | ||||
| if (directions == 0) { | if (directions == 0) { | ||||
| return WM_CURSOR_DEFAULT; | return U.select_cursor; | ||||
| } | } | ||||
| else if ((directions & ~(NODE_RESIZE_TOP | NODE_RESIZE_BOTTOM)) == 0) { | else if ((directions & ~(NODE_RESIZE_TOP | NODE_RESIZE_BOTTOM)) == 0) { | ||||
| return WM_CURSOR_Y_MOVE; | return WM_CURSOR_Y_MOVE; | ||||
| Context not available. | |||||
| return WM_CURSOR_X_MOVE; | return WM_CURSOR_X_MOVE; | ||||
| } | } | ||||
| else { | else { | ||||
| return WM_CURSOR_EDIT; | return U.precision_cursor; | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| bNodeTree *ntree = snode->edittree; | bNodeTree *ntree = snode->edittree; | ||||
| bNode *node; | bNode *node; | ||||
| bNodeSocket *sock; | bNodeSocket *sock; | ||||
| int wmcursor = WM_CURSOR_DEFAULT; | int wmcursor = U.select_cursor; | ||||
| if (ntree) { | if (ntree) { | ||||
| if (node_find_indicated_socket(snode, &node, &sock, cursor, SOCK_IN | SOCK_OUT)) { | if (node_find_indicated_socket(snode, &node, &sock, cursor, SOCK_IN | SOCK_OUT)) { | ||||
| Context not available. | |||||