Update PyDoc to add type of bpy.types.NodeSocket.links #128626

Manually merged
Campbell Barton merged 2 commits from nutti/blender:update-bpy-types-nodesocket-links-pydoc into main 2024-10-09 08:49:34 +02:00

View File

@ -1276,6 +1276,8 @@ class NodeSocket(_StructRNA, metaclass=_RNAMetaPropGroup):
"""
List of node links from or to this socket.
:type: :class:`NodeLinks`
.. note:: Takes ``O(len(nodetree.links))`` time."""
links = (link for link in self.id_data.links
if self in (link.from_socket, link.to_socket))