This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/blenkernel
Leon Schittek 89aae4ac82 Node Editor: Controlled node link swapping
Allow to explicitly swap node links by pressing the alt-key while
reconnecting node links. This replaces the old auto-swapping based on
matching prefixes in socket names.

The new behavior works as follows:

* By default plugging links into already occupied (single input)
  sockets will connect the dragged link and remove the existing one.
* Pressing the alt-key while dragging an existing node link from one
  socket to another socket that is already connected will swap the
  links' destinations.
* Pressing the alt-key while dragging a new node link into an already
  linked socket will try to reconnect the existing links into another
  socket of the same type and remove the links, if no matching socket
  is found on the node. This is similar to the old auto-swapping.

Swapping links from or to multi input sockets is not supported.

This commit also makes the link drag tooltip better visible, when using
light themes by using the text theme color.

Reviewed By: Hans Goudey, Simon Thommes

Differential Revision: https://developer.blender.org/D16244
2023-01-28 10:07:29 +01:00
..
2023-01-28 11:03:45 +13:00
2022-11-01 12:24:58 +11:00
2022-05-06 13:33:23 +02:00
2022-11-12 18:33:31 +01:00
2023-01-16 13:57:10 +11:00
2022-09-15 19:13:13 +02:00
2022-09-21 12:00:01 +10:00
2022-09-16 18:14:33 +10:00
2022-10-05 13:48:01 -05:00
2022-10-06 10:49:24 -05:00
2023-01-20 15:19:32 +11:00