UI: fix too wide resize area on edges of nodes, interfering with content.

Differential Revision: https://developer.blender.org/D3997
This commit is contained in:
Harley Acheson 2019-01-04 15:08:24 +01:00 committed by Brecht Van Lommel
parent e97700ef74
commit ce40b0b3f5
2 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,7 @@ static int node_resize_area_default(bNode *node, int x, int y)
return 0;
}
else {
const float size = 10.0f;
const float size = NODE_RESIZE_MARGIN;
rctf totr = node->totr;
int dir = 0;

View File

@ -245,6 +245,7 @@ extern const char *node_context_dir[];
#define NODE_HEIGHT(node) (node->height * UI_DPI_FAC)
#define NODE_MARGIN_X (0.75f * U.widget_unit)
#define NODE_SOCKSIZE (0.25f * U.widget_unit)
#define NODE_RESIZE_MARGIN (0.20f * U.widget_unit)
#define NODE_LINK_RESOL 12
// XXX button events (butspace)