53c2ee7e37a482524c01871206313f446ff366bc
bAnimListElem fields enum-typed
Change the `bAnimListElem` fields `type`, `update`, and `datatype` from respectively `int`, `char`, and `short` to their actual `enum` types, respectively `eAnim_ChannelType`, `eAnim_Update_Flags`, and `eAnim_KeyType`. To prevent compiler warnings, all `switch` statements that try to handle these fields have been expanded with the missing `case`s. This should help in the future when new channel types are added, as that'll cause more compiler warnings in those places that need updating. One `if`/`else if`/`else` chain was converted into a `switch` for clarity. This was actually the place where my (upcoming) code is hitting the `BLI_assert_unreachable()`, which was the final straw for this refactor. No functional changes. Pull Request: https://projects.blender.org/blender/blender/pulls/122874
…
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%
