Page MenuHome

Nodes: Support internal links for custom sockets
ClosedPublic

Authored by Omar Emara (OmarSquircleArt) on Nov 26 2021, 9:33 PM.
Tags
None
Subscribers
None
Tokens
"Love" token, awarded by hitrpr."Like" token, awarded by AlexeyAdamitsky."Love" token, awarded by iyadahmed2001.

Details

Summary

Currently, nodes with custom sockets do not get their internal links
populated. So operators like Delete And Reconnect don't work with such
nodes. This patch put custom sockets into consideration when computing
priorities for internal links such that sockets of the same idname get
connected. Additionally, the patch cleanup the function in the process
to avoid redundant code repetition.

Diff Detail

Repository
rB Blender
Branch
nodes-custom-sockets-internal-links (branched from master)
Build Status
Buildable 18997
Build 18997: arc lint + arc unit

Event Timeline

Omar Emara (OmarSquircleArt) requested review of this revision.Nov 26 2021, 9:33 PM
Omar Emara (OmarSquircleArt) created this revision.
Jacques Lucke (JacquesLucke) requested changes to this revision.Nov 29 2021, 10:10 AM

Looks mostly good.

source/blender/nodes/intern/node_util.c
367

This is probably missing a break or return, otherwise it falls through into the SOCK_VECTOR case.

This revision now requires changes to proceed.Nov 29 2021, 10:10 AM
  • Avoid potential fall through
This revision is now accepted and ready to land.Nov 29 2021, 11:53 AM