eb731c036b2b974c27dcc79287a03d924079fa0a
bDopesheet *ads parameter
In the animation filtering code, avoid passing `bDopesheet *ads` as a separate parameter. Instead, pass `bAnimContext *ac`. This already contains the same pointer. Some carefully placed asserts help to verify that these pointers were indeed the same. Not only do I think this approach is cleaner, it is a necessary step for upcoming PRs #123187 and #122672. Those will need a `Main *bmain` pointer, which is already available in the `bAnimContext` struct. Mostly this is just dumb search & replace. - `ads` → `ac->ads` - `bDopeSheet *ads` parameter → remove, and add `bAnimContext *ac` parameter if necessary. That parameter should be the first parameter of the function. - Unused `ads` parameter translates to unused `ac` parameter. Chances are, that parameter will be necessary for the `Main *bmain` anyway. No functional changes. Pull Request: https://projects.blender.org/blender/blender/pulls/123305
…
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%
