diff options
author | Csaba Boncsér <geochuder> | 2022-11-02 14:33:09 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-11-02 14:34:22 +0300 |
commit | 14e4c96b64f982dae26256be57c848ec134a72e9 (patch) | |
tree | 8921862fb5b8f047e31b6c348b6694faeba27ae5 /source/blender/compositor/realtime_compositor | |
parent | 5f7ca5462d31ff56f16016d5f9e6a5489b30a05e (diff) |
Nodes: Reuse input sockets when creating new node groups
**Problem**
Currently multiple input sockets are created when a new node group is
made from selected nodes. Some of these are linked from the same source.
It is not convenient to sort out and remove multiple input sockets that
represent the same input. These inputs usually have meaningless names
like 'value', 'x', etc.
**Solution**
Create common input sockets for each link starting from the same input.
Move links inside the new group's node tree and reroute it to connect
the common input socket to the original nodes. This is done by building
up a mapping between the incoming link sources to the input interfaces
created for them. The input interfaces are reused by the rest of the
links having the same source.
This patch also changes the way the input sockets get their names.
Output socket names of the group nodes usually are specific and are
given consciously. Use the output socket names from group nodes instead
of the inputs where the links point to.
Differential Revision: https://developer.blender.org/D15802
Diffstat (limited to 'source/blender/compositor/realtime_compositor')
0 files changed, 0 insertions, 0 deletions