Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
9a1dbcc2
Commit
9a1dbcc2
authored
Mar 05, 2022
by
Jean-Baptiste Mardelle
Browse files
On project load, ensure reverse mixes are correctly detected
parent
0f53fb82
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/builders/meltBuilder.cpp
View file @
9a1dbcc2
...
...
@@ -282,6 +282,7 @@ bool constructTrackFromMelt(const std::shared_ptr<TimelineItemModel> &timeline,
}
}
}
// Load same track mixes
for
(
auto
compo
:
qAsConst
(
compositions
))
{
timeline
->
plantMix
(
tid
,
compo
);
}
...
...
src/timeline2/model/trackmodel.cpp
View file @
9a1dbcc2
...
...
@@ -2469,6 +2469,12 @@ bool TrackModel::loadMix(Mlt::Transition *t)
field
->
unlock
();
return
false
;
}
}
else
{
int
firstClipIn
=
m_allClips
[
cid1
]
->
getPosition
();
if
(
in
==
firstClipIn
)
{
// Incorrecty detected revert mix
std
::
swap
(
cid1
,
cid2
);
}
}
// Ensure in/out points are in sync with the clips
int
clipIn
=
m_allClips
[
cid2
]
->
getPosition
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment