This is a followup to the following bug report:
After some testing, I think I’ve narrowed down the hiding spot of this elusive bug to the Use Last Keyframe? Toggle. Here’s the steps to reproduce the bug:
1: Launch Unreal Engine 4.11.2
2: Create project from starter template - First Person
3: Open First Person Character blueprint
4: Add timeline
5: Connect Play from Start of Timeline_0 to Event BeginPlay
6: Connect Finished of Timeline_0 to Set GunOffset
7: Assign a breakpoint to Set GunOffset
8: Open Timeline_0 and add Float Track
9: Add Keyframe at time 0.364, value 0.077 (On further testing, Keyframe times and values don’t seem to matter)
10: Add Keyframe at time 6.991, value 2.039 (Leave Length at 5.00)
11: Toggle Use Last Keyframe? on
12: Play. Breakpoint triggers at 6.991 seconds from begin of play
13: Stop Play and go back into Timeline_0 and toggle Use Last Keyframe? off
14: Play. Breakpoint triggers at 6.991 seconds from begin of play
Breakpoint should trigger at 5.00 seconds from begin of play
15: Stop Play and go back into Timeline_0 and set Length to 2.00
16: Play. Breakpoint triggers at 6.991 seconds from begin of play
Breakpoint should trigger at 2.00 seconds from begin of play
17: Stop Play, go back into Timeline_0 and delete Key at time 6.991
18: Play. Breakpoint triggers at 0.364 seconds from begin play
Breakpoint should trigger at 2.00 seconds from begin of play