Blender Git Loki

Git Commits -> Revision f86331a

Revision f86331a by Jacques Lucke (master)
November 26, 2021, 13:47 (GMT)
Geometry Nodes: deduplicate virtual array implementations

For some underlying data (e.g. spans) we had two virtual array
implementations. One for the mutable and one for the immutable
case. Now that most code does not deal with the virtual array
implementations directly anymore (since rBrBd4c868da9f97a),
we can get away with sharing one implementation for both cases.
This means that we have to do a `const_cast` in a few places, but
this is an implementation detail that does not leak into "user code"
(only when explicitly casting a `VArrayImpl` to a `VMutableArrayImpl`,
which should happen nowhere).

Commit Details:

Full Hash: f86331a0338dc2351e914b45ccbd743b6cccbb19
Parent Commit: ef88047
Lines Changed: +126, -374

6 Modified Paths:

/source/blender/blenkernel/intern/attribute_access.cc (+3, -4) (Diff)
/source/blender/blenkernel/intern/geometry_component_curve.cc (+67, -147) (Diff)
/source/blender/blenkernel/intern/geometry_component_mesh.cc (+11, -32) (Diff)
/source/blender/blenlib/BLI_virtual_array.hh (+24, -104) (Diff)
/source/blender/functions/FN_generic_virtual_array.hh (+4, -22) (Diff)
/source/blender/functions/intern/generic_virtual_array.cc (+17, -65) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021