Bug 513053 - Copy-pasted keyframes reset their interpolation to Linear
Summary: Copy-pasted keyframes reset their interpolation to Linear
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Timeline & Editing (other bugs)
Version First Reported In: 25.08.3
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2025-12-07 17:37 UTC by helispark
Modified: 2025-12-11 09:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
A before and after example of copying eight keyframes with Discrete interpolation and pasting them. (1.62 MB, image/png)
2025-12-07 17:37 UTC, helispark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description helispark 2025-12-07 17:37:35 UTC
Created attachment 187420 [details]
A before and after example of copying eight keyframes with Discrete interpolation and pasting them.

SUMMARY
After copying and pasting keyframe(s) on the same Effect timeline, the pasted keyframes' interpolations are reset to Linear automatically.

STEPS TO REPRODUCE
1. Make a new project
2. Add a video clip
3. Add an Effect to the video clip
4. Add a keyframe to the Effect timeline
5. Set the keyframe's interpolation to anything other than Linear
6. Copy the keyframe
7. Paste the keyframe onto the same timeline

OBSERVED RESULT
After copying and pasting a keyframe or set of keyframes with Discrete interpolation, or any other interpolation that is not Linear, the pasted keyframes have the Linear interpolation instead.

EXPECTED RESULT
After copying and pasting a keyframe or set of keyframes with Discrete interpolation, or any other interpolation that is not Linear, the pasted keyframes keep the interpolation that the initial copied keyframes have.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux Mint 22 "Wilma" (base: Ubuntu 24.04 noble)

ADDITIONAL INFORMATION
The bug also occurs if you copy a keyframe and paste it onto a different timeline of the same Effect type, including timelines on other video clips. However, the dropdown option to import copied keyframes onto a different Effect will keep the interpolation of each copied keyframe as is, instead of resetting them. (Import Keyframes from Clipboard...)
Comment 1 Jean-Baptiste Mardelle 2025-12-11 09:14:34 UTC
Git commit ca204a0a849845582f47ed2dba6b0c0a12550af6 by Jean-Baptiste Mardelle.
Committed on 11/12/2025 at 09:14.
Pushed by mardelle into branch 'release/25.12'.

Fix copy paste resets keyframe type

M  +2    -1    src/assets/keyframes/model/keyframemodel.cpp
M  +1    -0    src/assets/keyframes/model/keyframemodel.hpp
M  +76   -12   src/assets/view/widgets/keyframecontainer.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/ca204a0a849845582f47ed2dba6b0c0a12550af6