Blender Git Commit Log

Git Commits -> Revision cfc177a

Revision cfc177a by Hans Goudey (lineart-shadow)
December 8, 2021, 06:51 (GMT)
Cleanup: Store instances id attribute with other attributes

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.

I had to add a null check for `update_custom_data_pointers` because
the instances component doesn't have any pointers to inside of
custom data.

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

Commit Details:

Full Hash: cfc177adad7dc497192a4902dbdd67136e6f9815
Parent Commit: d604114
Committed By: YimingWu
Lines Changed: +57, -142

5 Modified Paths:

/source/blender/blenkernel/BKE_geometry_set.hh (+0, -12) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+15, -5) (Diff)
/source/blender/blenkernel/intern/geometry_component_instances.cc (+37, -113) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_legacy_point_instance.cc (+5, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_instance_on_points.cc (+0, -11) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021