This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/blenkernel
Hans Goudey 38a45e46bc Cleanup: Use OffsetIndices class in more cases
The same logic from D17025 is used in other places in the curve code.
This patch uses the class for the evaluated point offsets and the Bezier
control point offsets. This helps to standardize the behavior and make
it easier to read.

Previously the Bezier control point offsets used a slightly different standard
where the first point was the first offset, just so they could have the same
size as the number of points. However two nodes used a helper function
to use the same `OffsetIndices` system, so switch to that there too.
That requires removing the subtraction by one to find the actual offset.

Also add const when accessing data arrays from curves, for consistency.

Differential Revision: https://developer.blender.org/D17038
2023-01-19 13:48:20 -06:00
..
2022-02-11 10:28:59 +01:00
2022-11-01 12:24:58 +11:00
2022-05-06 13:33:23 +02:00
2022-11-12 18:33:31 +01:00
2023-01-16 13:57:10 +11:00
2022-09-15 19:13:13 +02:00
2022-10-05 13:48:01 -05:00
2022-02-11 09:14:36 +11:00
2022-09-21 12:00:01 +10:00
2022-09-16 18:14:33 +10:00
2022-10-05 13:48:01 -05:00
2022-10-06 10:49:24 -05:00