diff options
-rw-r--r-- | source/blender/editors/space_node/node_draw.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 7003d51b2b6..b879219e39c 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -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, |