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:
parent
792bf82f11
commit
56435b3268
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user