diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-11 13:35:02 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-11 13:35:02 +0300 |
commit | 28e83bca9d997366aa174bf3ea55fe1dae8866e5 (patch) | |
tree | deade5743395acabe33d4db200d6851e9312e2c0 /source/blender/nodes | |
parent | 85623f6a5590e99c9d821bba53f8b5fe3812a47d (diff) |
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.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/intern/node_tree_ref.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_tree_ref.cc b/source/blender/nodes/intern/node_tree_ref.cc index 775e16d0a29..a66b7b1d2fe 100644 --- a/source/blender/nodes/intern/node_tree_ref.cc +++ b/source/blender/nodes/intern/node_tree_ref.cc @@ -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); } } } |