Page MenuHome

Fix T88807: Multiple links from same socket.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Jun 10 2021, 4:59 PM.

Details

Summary

This patch does two things:

  1. Disallows creating more than one link from one socket to a multi socket input.
  2. Properly count links if there happen to be more than one link between the same sockets.

The new link counting should also be more efficient asymptotically.

Diff Detail

Repository
rB Blender
Branch
fix-multi-input-from-same-socket (branched from master)
Build Status
Buildable 15108
Build 15108: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Jun 10 2021, 4:59 PM
Jacques Lucke (JacquesLucke) created this revision.
Jacques Lucke (JacquesLucke) retitled this revision from Nodes: Fix multiple links from same socket. to Fix T88807: Multiple links from same socket..Jun 10 2021, 5:01 PM
Jacques Lucke (JacquesLucke) edited the summary of this revision. (Show Details)
Hans Goudey (HooglyBoogly) added inline comments.
source/blender/editors/space_node/node_draw.cc
1780

No need to remove this comment IMO, it's helpful for understanding why there are two loops, at least if someone isn't already familiar with the code.

This revision is now accepted and ready to land.Jun 10 2021, 5:50 PM