Fix #112016: Sockets in closed node panels still draggable. #112019

Merged
Lukas Tönne merged 2 commits from LukasTonne/blender:fix-closed-panel-link-drag into main 2023-09-06 13:34:29 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -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

this->

`this->`
}
inline bNode &bNodeSocket::owner_node()

View File

@ -124,7 +124,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams &params)
/* If the source node has a geometry socket, connect it to the new viewer node as well. */
LISTBASE_FOREACH (bNodeSocket *, socket, &params.node.outputs) {
if (socket->type == SOCK_GEOMETRY && !(socket->flag & (SOCK_UNAVAIL | SOCK_HIDDEN))) {
if (socket->type == SOCK_GEOMETRY && socket->is_visible()) {
nodeAddLink(&params.node_tree,
&params.node,
socket,