The issue was caused by blender/blender@f3b393a74a Before that commit, the keylist would be built including 1 keyframe outside the range on each side (if there was one). After that those would be ignored, leading to the following issue Fixes #125861 The fix is to ensure the keylist is built with 1 key outside the given range. Pull Request: https://projects.blender.org/blender/blender/pulls/125807