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
03c50600
Commit
03c50600
authored
Oct 19, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix mix cut position lost on paste
parent
020bb22a
Pipeline
#89777
passed with stage
in 8 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/trackmodel.cpp
View file @
03c50600
...
...
@@ -2090,13 +2090,12 @@ bool TrackModel::createMix(MixInfo info, std::pair<QString,QVector<QPair<QString
//int out = in + info.firstClipInOut.second - info.secondClipInOut.first;
int
duration
=
info
.
firstClipInOut
.
second
-
info
.
secondClipInOut
.
first
;
int
out
=
in
+
duration
;
movedClip
->
setMixDuration
(
duration
);
movedClip
->
setMixDuration
(
duration
,
info
.
mixOffset
);
std
::
unique_ptr
<
Mlt
::
Transition
>
t
;
const
QString
assetId
=
params
.
first
;
t
=
std
::
make_unique
<
Mlt
::
Transition
>
(
*
ptr
->
getProfile
(),
assetId
.
toUtf8
().
constData
());
int
mixCutPos
=
info
.
mixOffset
;
//movedClip->getMixCutPosition();
t
->
set_in_and_out
(
in
,
out
);
t
->
set
(
"kdenlive:mixcut"
,
mixCutPos
);
t
->
set
(
"kdenlive:mixcut"
,
info
.
mixOffset
);
t
->
set
(
"kdenlive_id"
,
assetId
.
toUtf8
().
constData
());
m_track
->
plant_transition
(
*
t
.
get
(),
0
,
1
);
QDomElement
xml
=
TransitionsRepository
::
get
()
->
getXml
(
assetId
);
...
...
Write
Preview
Supports
Markdown
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