Page MenuHome

Geometry Nodes: Separate Instances from InstancesComponent.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Oct 4 2022, 9:53 AM.

Details

Summary

This makes instance handling more consistent with all the other geometry component types. For example, MeshComponent contains a Mesh * and now InstancesComponent has a Instances *.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Oct 4 2022, 9:53 AM
Jacques Lucke (JacquesLucke) created this revision.

Good change!

source/blender/blenkernel/BKE_instances.hh
249–257

Maybe we could just avoid exposing these completely, they're redundant with the BKE_attribute.hh API.

source/blender/blenkernel/intern/geometry_set_instances.cc
158–237

Eventually we could move everything here to instances.cc, that might be nice

This revision is now accepted and ready to land.Oct 4 2022, 5:34 PM
Jacques Lucke (JacquesLucke) marked 2 inline comments as done.Oct 17 2022, 11:16 AM
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/blenkernel/BKE_instances.hh
249–257

Yeah, can be done outside of this refactor.

source/blender/blenkernel/intern/geometry_set_instances.cc
158–237

Yup.