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
e0899fa5
Commit
e0899fa5
authored
Nov 22, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix mix cut pos lost when switching mix composition
parent
ae24f6d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/trackmodel.cpp
View file @
e0899fa5
...
...
@@ -2513,6 +2513,7 @@ void TrackModel::switchMix(int cid, const QString composition, Fun &undo, Fun &r
Mlt
::
Transition
&
transition
=
*
static_cast
<
Mlt
::
Transition
*>
(
m_sameCompositions
[
cid
]
->
getAsset
());
int
in
=
transition
.
get_in
();
int
out
=
transition
.
get_out
();
int
mixCutPos
=
transition
.
get_int
(
"kdenlive:mixcut"
);
QScopedPointer
<
Mlt
::
Field
>
field
(
m_track
->
field
());
field
->
lock
();
field
->
disconnect_service
(
transition
);
...
...
@@ -2522,6 +2523,7 @@ void TrackModel::switchMix(int cid, const QString composition, Fun &undo, Fun &r
std
::
unique_ptr
<
Mlt
::
Transition
>
t
=
TransitionsRepository
::
get
()
->
getTransition
(
composition
);
t
->
set_in_and_out
(
in
,
out
);
m_track
->
plant_transition
(
*
t
.
get
(),
0
,
1
);
t
->
set
(
"kdenlive:mixcut"
,
mixCutPos
);
QDomElement
xml
=
TransitionsRepository
::
get
()
->
getXml
(
composition
);
std
::
shared_ptr
<
AssetParameterModel
>
asset
(
new
AssetParameterModel
(
std
::
move
(
t
),
xml
,
composition
,
{
ObjectType
::
TimelineMix
,
cid
},
QString
()));
m_sameCompositions
[
cid
]
=
asset
;
...
...
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