Connecting to some sockets of a few nodes via the drag link search
would fail and trigger an assert, because the picked socket wasn't
available. This was due to some sockets only being available with
certain settings.
This patch fixes these cases by adding the availability conditions of
the socket to the node declaration with the make_available method or
manually adding a node_link_gather_search function.
The following nodes were affected:
- Curve Arc
- Curve Circle
- Curve Line
- Distribute Points on Faces
- Scale Elements
- Sky Texture
- Vector Rotate
- Rotate Euler
Comparison
| master | patch |
|---|---|
For some of these nodes it might be nice to manually create the
node_link_gather_search function to allow the same socket to show
up twice for different modes (e.g. it could be convenient it the Start
socket of the Curve Line node would show up both as
Start (Endpoints) and Start (Direction) but I wasn't too sure about
that so I left that out for now.