Ignore "unavailable" links in the compositor, where one or both sockets

are unavailable (hidden).
This commit is contained in:
Lukas Tönne 2015-01-14 11:13:19 +01:00
parent 197e889104
commit dd5d31b515
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ void NodeGraph::add_bNodeLink(const NodeRange &node_range, bNodeLink *b_nodelink
/// @note: ignore invalid links
if (!(b_nodelink->flag & NODE_LINK_VALID))
return;
if ((b_nodelink->fromsock->flag & SOCK_UNAVAIL) || (b_nodelink->tosock->flag & SOCK_UNAVAIL))
return;
/* Note: a DNA input socket can have multiple NodeInput in the compositor tree! (proxies)
* The output then gets linked to each one of them.