Fix node socket connection util after changes to the interface API #112960

Merged
Hans Goudey merged 1 commits from pioverfour/blender:dp_fix_node_util_socket into blender-v4.0-release 2023-09-27 16:46:05 +02:00

1 Commits

Author SHA1 Message Date
Damien Picard f0b986349b Fix node socket connection util after changes to the interface API
The `connect_sockets()` node util function is used to connect sockets
even when inside node groups, when only a "virtual socket" is
available. It takes care of creating the interface in the group, so
that a socket is available in the Input or Output node.

This feature was broken after the change of API, replacing
`tree.inputs` and `tree.outputs` with a unified `tree.interface`.

This commit updates the util to account for this change.

Fixes an exception in the Node Wrangler add-on, when connecting a
socket of a type not yet available in an Input or Output node.

More info here:
https://wiki.blender.org/wiki/Reference/Release_Notes/4.0/Python_API#Node_Groups
2023-09-27 16:26:07 +02:00