Page MenuHome

Nodes: Support linking to existing group input from link drag search.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Dec 27 2021, 12:01 PM.

Details

Summary

Before one could only create a new group input using the link drag search. With this patch it becomes possible to create a Group Input node for an existing input.

Diff Detail

Repository
rB Blender
Branch
link-group-input (branched from master)
Build Status
Buildable 19641
Build 19641: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Dec 27 2021, 12:01 PM
Jacques Lucke (JacquesLucke) created this revision.

This is a great improvement, and the code makes sense.

source/blender/editors/space_node/link_drag_search.cc
168

I think it would be reasonable to create a nodes::GatherLinkSearchOpParams and use add_item to avoid this duplication of the string wrangling.
But it would make it necessary to look up the node type for the group input node, and it's a little less direct. So either way is fine with me.

This revision is now accepted and ready to land.Dec 27 2021, 2:49 PM
source/blender/editors/space_node/link_drag_search.cc
168

Not sure if temporarily creating a GatherLinkSearchOpParams is a cleaner solution. Will just leave it as is for now.

is this geometry nodes only or does this work with shader nodes?