Geometry Nodes: improve handling when the same socket is connected twice

The multi-input-socket cannot be connected to the same socket twice currently.
However, it is still possible to achieve this using an intermediate reroute node.

In this case the origin socket should be listed twice in the `linked_sockets_` list.
Higher level functions can still deduplicate the list of they want.
This commit is contained in:
Jacques Lucke 2021-03-11 11:35:02 +01:00
parent 85623f6a55
commit 28e83bca9d
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ void NodeTreeRef::find_origins_skipping_reroutes(InputSocketRef &socket,
this->find_origins_skipping_reroutes(*direct_origin->node_->inputs_[0], r_origins);
}
else {
r_origins.append_non_duplicates(direct_origin);
r_origins.append(direct_origin);
}
}
}