125617dc827ed11ea1c43369ca6c6ad8f170919b
Layer::frame_key_at
There were multiple places in the GPv3 code that assumed that the frame key is equivalent to the start frame of the frame with that key. But this is not the case. The `FramesMapKeyT` is either the start frame *or* the end frame (for frames with fixed duration). This adds a new function `start_frame_at` that returns the start frame number of the frame at `frame_number` or -1 if no such frame exists. One place needed the index into sorted keys (for onion skinning) so this was replaced with a new function `sorted_keys_index_at`. With these changes, `Layer::frame_key_at` is now a private method. Pull Request: https://projects.blender.org/blender/blender/pulls/122045
…
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%
