Page MenuHome

Fix: Attribute Transfer node does not work with a single index.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Nov 11 2021, 6:30 PM.

Details

Summary


This changes the code so that instead of a FieldInput the index transfer also uses a MultiFunction.
As a side effect this change slightly modifies the behavior of the node when the target contains a mesh and a point cloud.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Nov 11 2021, 6:30 PM
Jacques Lucke (JacquesLucke) created this revision.

Looks good. I had it implemented this way at some point too, before I realized I "needed" to make it a field input to get the matching component behavior.

source/blender/nodes/geometry/nodes/node_geo_transfer_attribute.cc
589–590

I'd call this find_target_component, since there's no matching going on anymore.

This revision is now accepted and ready to land.Nov 11 2021, 6:58 PM