Page MenuHome

Cleanup: Store instances id attribute with other attributes
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Nov 30 2021, 6:11 PM.

Details

Summary

Now that we can store any dynamic attribute on the instances component,
we don't need the special case for id, it can just be handled by the generic
attribute storage. Mostly this just allows removing a bunch of redundant code.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Nov 30 2021, 6:11 PM
Hans Goudey (HooglyBoogly) created this revision.
  • Merge branch 'master' into cleanup-instances-id-dynamic
  • Cleanup
Hans Goudey (HooglyBoogly) retitled this revision from Cleanup: Store instances id attribute with other attributes (WIP) to Cleanup: Store instances id attribute with other attributes.Dec 1 2021, 5:37 AM
Hans Goudey (HooglyBoogly) edited the summary of this revision. (Show Details)
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/blenkernel/intern/geometry_component_instances.cc
440

ATTR_DOMAIN_INSTANCE
Otherwise it breaks the spreadsheet.

source/blender/nodes/geometry/nodes/node_geo_instance_on_points.cc
22

Adding that seems unnecessary.

This revision is now accepted and ready to land.Dec 1 2021, 11:19 AM
Hans Goudey (HooglyBoogly) marked 2 inline comments as done.Dec 1 2021, 2:58 PM