Blender Git Loki

Git Commits -> Revision f8dd03d

Revision f8dd03d by Hans Goudey (master)
December 1, 2021, 14:27 (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: f8dd03d3dd1b2d7f0ade7c209092212098c75cb4
Parent Commit: fd84183
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021