02e721275f5b51206c7b30118ab67f3908a86f11
The functions were allocating arrays of `T *` rather than `T`, and then were reinterpret-casting to the correct type afterwards. This coincidentally worked at the current call sites because `T` was always a pointer type anyway, but the code was logically incorrect and wouldn't work if anyone tried to use them with a non-pointer `T`. This commit fixes this by correctly allocating an array of `T` instead, and removing the unnecessary cast. Pull Request: https://projects.blender.org/blender/blender/pulls/126656
…
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%
