Fix T100579: internal links are drawn when sockets are hidden

This commit is contained in:
Jacques Lucke 2022-08-23 10:35:38 +02:00
parent 4fecf652e2
commit 56205e9f31
Notes: blender-bot 2023-02-14 03:52:45 +01:00
Referenced by issue #100579, Muted node has ghosting noodle
1 changed files with 3 additions and 1 deletions

View File

@ -663,7 +663,9 @@ static void node_draw_mute_line(const bContext &C,
GPU_blend(GPU_BLEND_ALPHA);
LISTBASE_FOREACH (const bNodeLink *, link, &node.internal_links) {
node_draw_link_bezier(C, v2d, snode, *link, TH_WIRE_INNER, TH_WIRE_INNER, TH_WIRE, false);
if (!nodeLinkIsHidden(link)) {
node_draw_link_bezier(C, v2d, snode, *link, TH_WIRE_INNER, TH_WIRE_INNER, TH_WIRE, false);
}
}
GPU_blend(GPU_BLEND_NONE);