Fix #112016: Sockets in closed node panels still draggable. #112019
|
@ -792,7 +792,7 @@ inline bool bNodeSocket::is_panel_collapsed() const
|
|||
|
||||
inline bool bNodeSocket::is_visible() const
|
||||
{
|
||||
return !this->is_hidden() && this->is_available();
|
||||
return !this->is_hidden() && this->is_available() && !this->is_panel_collapsed();
|
||||
LukasTonne marked this conversation as resolved
Outdated
|
||||
}
|
||||
|
||||
inline bNode &bNodeSocket::owner_node()
|
||||
|
|
|
@ -124,7 +124,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
|||
|
||||
/* If the source node has a geometry socket, connect it to the new viewer node as well. */
|
||||
LISTBASE_FOREACH (bNodeSocket *, socket, ¶ms.node.outputs) {
|
||||
if (socket->type == SOCK_GEOMETRY && !(socket->flag & (SOCK_UNAVAIL | SOCK_HIDDEN))) {
|
||||
if (socket->type == SOCK_GEOMETRY && socket->is_visible()) {
|
||||
nodeAddLink(¶ms.node_tree,
|
||||
¶ms.node,
|
||||
socket,
|
||||
|
|
Loading…
Reference in New Issue
this->