Fix T94621: Missing selection indication for virtual node sockets

A small regression as a result of adding a custom outline to the empty
virtual socket, which ended up overriding the colors when selected with
Shift+LMB.

Differential Revision: https://developer.blender.org/D15103
This commit is contained in:
Max Edge 2022-06-23 12:22:23 -05:00 committed by Hans Goudey
parent 792bf82f11
commit 56435b3268
Notes: blender-bot 2023-02-14 03:52:45 +01:00
Referenced by issue #94621, When the empty socket of the Group Input/Output node is selected, there is no visual feedback
1 changed files with 5 additions and 6 deletions

View File

@ -749,15 +749,14 @@ static void node_socket_outline_color_get(const bool selected,
if (selected) {
UI_GetThemeColor4fv(TH_ACTIVE, r_outline_color);
}
else if (socket_type == SOCK_CUSTOM) {
/* Until there is a better place for per socket color,
* the outline color for virtual sockets is set here. */
copy_v4_v4(r_outline_color, virtual_node_socket_outline_color);
}
else {
UI_GetThemeColor4fv(TH_WIRE, r_outline_color);
}
/* Until there is a better place for per socket color,
* the outline color for virtual sockets is set here. */
if (socket_type == SOCK_CUSTOM) {
copy_v4_v4(r_outline_color, virtual_node_socket_outline_color);
}
}
void node_socket_color_get(const bContext &C,