8182f684bec02eca40d941bde4b3dfdbd5ce03a0
This adds a variant of `accumulate_counts_to_offsets` which checks for overflows. The hot loop stays essentially the same, it just uses a `int64_t` instead of `int` for the counter now. For now the error state is returned by using an `std::optional`. Alternatives could be to throw `std::overflow_error` or to use some Result/Expected type in the future. Obviously, there are more places that should handle this kind of error. It's also not obvious how to propagate that error further up yet so that we can display e.g. a warning in the node. That decision should be applicable to other nodes too. For now, there is no warning on the node. Pull Request: https://projects.blender.org/blender/blender/pulls/127184
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
