The function for retrieving a shape key by its index is named somewhat confusingly, and effectively reimplements BLI_findlink. However, more importantly, for some reason it is coded to return null for the index 0 instead of the basis shape key. This severely limits its usability in some cases. This refactor replaces the function with a simple strongly typed wrapper around BLI_findlink, using a different name, and updating the call sites to check that the index is not 0 where necessary.
…
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.
Languages
C++
78%
Python
14.9%
C
3%
GLSL
1.8%
CMake
1.2%
Other
0.9%