blender/source
Lukas Tönne 7f759ec547 Node callback for handling link insertion and swapping of occupied inputs.
Nodes have a feature for moving existing links to unoccupied sockets when connecting
to an already used input. This is based on the standard legacy socket types (value/float,
vector, color/rgba) and works reasonably well for shader, compositor and texture nodes.

For new pynode systems, however, the hardcoded nature of that feature has major drawbacks:
* It does not take different type systems into account, leading to meaningless connections
  when sockets are swapped and making the feature useless or outright debilitating.
* Advanced socket behaviors would be possible with a registerable callback, e.g. creating
  extensible input lists that move existing connections down to make room for a new link.

Now any handling of new links is done via the 'insert_links' callback, which can also be
registered through the RNA API. For the legacy shader/compo/tex nodes the behavior is the
same, using a C callback.

Note on the 'use_swap' flag: this has been removed because it was meaningless anyway:
It was disabled only for the insert-node-on-link feature, which works only for
completely unconnected nodes anyway, so there would be nothing to swap in the first place.
2015-12-03 13:04:04 +01:00
..
blender Node callback for handling link insertion and swapping of occupied inputs. 2015-12-03 13:04:04 +01:00
blenderplayer Buildbot: Initial work to move linux build environment to CMake 2015-12-02 18:11:58 +05:00
creator CMake: Add some missing license files in the install target 2015-11-30 21:33:57 +05:00
gameengine Fix a regression introduced by https://developer.blender.org/D1396 on video playing 2015-11-28 14:56:22 +01:00
icons
CMakeLists.txt
SConscript