diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-26 16:47:02 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-26 16:47:15 +0300 |
commit | f86331a0338dc2351e914b45ccbd743b6cccbb19 (patch) | |
tree | d67fb1d4baafd95e3b6fd97c9f707943b4d6746a /source/blender/editors/transform/transform_generics.c | |
parent | ef88047a97a10283cca21a3fe75c8d69d8fc40eb (diff) |
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).
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
0 files changed, 0 insertions, 0 deletions