From d3fa74cc25e9a16856baf31ace3751a4d2dd3d26 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 3 May 2023 19:58:53 -0500 Subject: [PATCH] Fix track do not blend properly when moving tracks As reported here: https://github.com/mltframework/shotcut/issues/1429 The call to inherit properties from the old transition to the new transition was also copying the private "f0r_*" and "_ctor-" pointer properties. This was causing the blending to break and always pass through the b frame. --- src/models/multitrackmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/multitrackmodel.cpp b/src/models/multitrackmodel.cpp index 900ab4f0f5..b128298392 100644 --- a/src/models/multitrackmodel.cpp +++ b/src/models/multitrackmodel.cpp @@ -3163,7 +3163,7 @@ void MultitrackModel::moveTrack(int fromTrackIndex, int toTrackIndex) } if (videoTransitions[bTrack].is_valid()) { Mlt::Transition vTransition (MLT.profile(), videoTransitions[bTrack].get("mlt_service")); - vTransition.inherit(videoTransitions[bTrack]); + vTransition.set("1", videoTransitions[bTrack].get("1")); if (bTrack == 1) { vTransition.set("disable", 1); } else {