Page MenuHome

Geometry Nodes: Use vector socket for offset in Set Position node.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Oct 24 2021, 8:30 PM.

Diff Detail

Repository
rB Blender
Branch
set-position-offset (branched from master)
Build Status
Buildable 18170
Build 18170: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Oct 24 2021, 8:30 PM
Jacques Lucke (JacquesLucke) created this revision.

Great, this is simpler-- rather than repurpose the meaning of a socket with the offset toggle, we just make it its own thing, simplifying and speeding up both cases. The commit message could say something like that to provide reasoning for the change.

Just testing the versioning and figured I might post before and after screenshots here:

It seems good enough to me. The node has only been around for so long anyway.

source/blender/nodes/geometry/nodes/node_geo_set_position.cc
63

We could check whether the offsets are single and zero before including them in the loop. I don't care if you do that now or we do it later though.

This revision is now accepted and ready to land.Oct 25 2021, 6:22 AM