Page MenuHome

Geometry Nodes: Copy parameters when copying a curves data-block
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Jul 9 2022, 1:10 AM.

Details

Summary

Previously, things like materials, symmetry, and selection options
stored on Curves weren't copied to the result in nodes like the
subdivide and resample nodes. Now they are, which fixes some
unexpected behavior and allows visualization of the sculpt mode
selection.

In the realize instances and join nodes the behavior is the same as
for meshes, the parameters are taken from the first (top) input.

I also refactored some functions to return a CurvesGeometry by-value,
which makes it the responsibility of the node to copy the parameters.
That should make the algorithms more reusable in other situations.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Jul 9 2022, 1:10 AM
Hans Goudey (HooglyBoogly) created this revision.

Duplicate elements node too

Jacques Lucke (JacquesLucke) added inline comments.
source/blender/blenkernel/BKE_node.h
318

call the execute function be called multiple
This can also be committed separately.

source/blender/geometry/intern/realize_instances.cc
1241

mesh

This revision is now accepted and ready to land.Jul 19 2022, 1:28 PM