Skip to content
GitLab
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
8f533d9c
Commit
8f533d9c
authored
Jun 18, 2019
by
Jean-Baptiste Mardelle
Browse files
don't trigger unnecessary refresh on clip resize
parent
faa12ab5
Pipeline
#4430
passed with stage
in 13 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/trackmodel.cpp
View file @
8f533d9c
...
...
@@ -482,16 +482,24 @@ Fun TrackModel::requestClipResize_lambda(int clipId, int in, int out, bool right
checkRefresh
=
true
;
}
auto
update_snaps
=
[
old_in
,
old_out
,
checkRefresh
,
this
](
int
new_in
,
int
new_out
)
{
auto
update_snaps
=
[
old_in
,
old_out
,
checkRefresh
,
right
,
this
](
int
new_in
,
int
new_out
)
{
if
(
auto
ptr
=
m_parent
.
lock
())
{
ptr
->
m_snaps
->
removePoint
(
old_in
);
ptr
->
m_snaps
->
removePoint
(
old_out
);
ptr
->
m_snaps
->
addPoint
(
new_in
);
ptr
->
m_snaps
->
addPoint
(
new_out
);
if
(
checkRefresh
)
{
ptr
->
checkRefresh
(
old_in
,
old_out
);
ptr
->
checkRefresh
(
new_in
,
new_out
);
// ptr->adjustAssetRange(clipId, m_allClips[clipId]->getIn(), m_allClips[clipId]->getOut());
if
(
right
)
{
if
(
old_out
<
new_out
)
{
ptr
->
checkRefresh
(
old_out
,
new_out
);
}
else
{
ptr
->
checkRefresh
(
old_in
,
old_out
);
}
}
else
if
(
old_in
<
new_in
)
{
ptr
->
checkRefresh
(
old_in
,
new_in
);
}
else
{
ptr
->
checkRefresh
(
new_in
,
old_in
);
}
}
}
else
{
qDebug
()
<<
"Error : clip resize failed because parent timeline is not available anymore"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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