Page MenuHome

Geometry Nodes: Implement the validate_link callback
ClosedPublic

Authored by Wannes Malfait (Wannes) on May 11 2021, 3:22 PM.

Details

Summary

This turns links red if no implicit conversion can be made between the
from socket and the to socket. For geometry nodes this happens with object,
geometry, collection, and string sockets that are connected to a different
type.

Valid connections:

From socketTo socket
float, int, bool, vector, or rgbafloat, int, bool, vector, or rgba
geometrygeometry
objectobject
stringstring
collectioncollection

Example:

Diff Detail

Repository
rB Blender
Branch
validate_link (branched from master)
Build Status
Buildable 14506
Build 14506: arc lint + arc unit