When calculating the overall animation length, add_animation assumes 1 frame = 1 fps, but frames can have different durations. This is handled correctly when adding keyframes, but not when setting the overall animation length.
This PR fixes the above issue.
When calculating the overall animation length,
add_animation
assumes 1 frame = 1 fps, but frames can have different durations. This is handled correctly when adding keyframes, but not when setting the overall animation length. This PR fixes the above issue.