Blender Git Commit Log

Git Commits -> Revision 34f99bc

Revision 34f99bc by Hans Goudey (master)
June 2, 2021, 12:24 (GMT)
Geometry Nodes: Allow reading converted attribute directly from spline

Often it would be beneficial to avoid the virtual array implementation
in `geometry_component_curve.cc` that flattens an attribute for every
spline and instead read an attribute separately for every input spline.
This commit implements functions to do that.

The downside is some code duplication-- we now have two places handling
this conversion. However, we can head in this general direction for the
attribute API anyway and support accessing attributes in smaller
contiguous chunks where necessary.

No functional changes in this commit.

Differential Revision: https://developer.blender.org/D11456

Commit Details:

Full Hash: 34f99bc6be3c343dd371e1f877e972cc80dd396d
Parent Commit: 6cd64f8
Lines Changed: +43, -0

2 Modified Paths:

/source/blender/blenkernel/BKE_attribute_access.hh (+15, -0) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+28, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021