diff options
author | Leon Schittek <lone_noel> | 2022-03-01 02:05:12 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-01 02:05:30 +0300 |
commit | ae6400cfb4cae798667eab903d9c463fdec31298 (patch) | |
tree | 45cf29e431acf8270f872a18a249f7aa9f3161ae /source/blender/editors/space_node/node_edit.cc | |
parent | 5777bd719b01f56e52d618a3260bd4cdf223d5cd (diff) |
UI: Fix multi input socket outline and highlight
Small fixes to the drawing of multi input sockets:
- Make the outline thickness consistent with normal node sockets,
independent from the screen DPI.
- Only highlight multi input sockets when they are actually selected.
- Skip selected multi inputs when drawing normal selected sockets.
Differential Revision: https://developer.blender.org/D14192
Diffstat (limited to 'source/blender/editors/space_node/node_edit.cc')
-rw-r--r-- | source/blender/editors/space_node/node_edit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc index 64f6e8bdf18..b30be6ae0af 100644 --- a/source/blender/editors/space_node/node_edit.cc +++ b/source/blender/editors/space_node/node_edit.cc @@ -89,7 +89,7 @@ struct CompoJob { float node_socket_calculate_height(const bNodeSocket &socket) { - float sock_height = NODE_SOCKSIZE * 2.0f; + float sock_height = NODE_SOCKSIZE * NODE_SOCKSIZE_DRAW_MULIPLIER; if (socket.flag & SOCK_MULTI_INPUT) { sock_height += max_ii(NODE_MULTI_INPUT_LINK_GAP * 0.5f * socket.total_inputs, NODE_SOCKSIZE); } |