Page MenuHome

VSE: snapping source strip right handle will incorrectly offset attached transform strip keyframes
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Debian 10
Graphics card: Radeon HD 7950 + GeForce GTX 1060

Blender Version
Broken: 2.90.0
Worked: 2.83.3

Short description of error

When extending a strip via snapping of its right handle, if it had an effect strip with keyframes, those keyframes are incorrectly offset beyond the source strip boundaries.

Exact steps for others to reproduce the error
With the attached .blend file, press shift + S to snap the right handle of the source strip to the playhead. It will change the transform strip keyframes to be incorrect.

I also attached a crude PoC patch which fixed my own use case. It's in no case intended to be usable as it is but just a hint at the piece of code probably responsible for the incorrect behaviour.

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Jan 14 2021, 9:47 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

I can confirm the problem, in fact I don't think the snap on just one side of the strip should affect the f-curve. The behavior would combine better with that of transform.
For a better review of the patch, I recommend submitting it through the https://developer.blender.org/differential/diff/create/

I've created D10116 as advised. I also included the fact that either handle snapping won't change the related strip keyframes.