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
4c9841ca
Commit
4c9841ca
authored
Feb 11, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix rotoscoping broken in some circumstances on cut clips
parent
55be25e0
Pipeline
#14845
passed with stage
in 16 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/assets/keyframes/model/keyframemodel.cpp
View file @
4c9841ca
...
...
@@ -698,13 +698,13 @@ QString KeyframeModel::getRotoProperty() const
{
QJsonDocument
doc
;
if
(
auto
ptr
=
m_model
.
lock
())
{
int
in
=
0
;
//
ptr->data(m_index, AssetParameterModel::ParentInRole).toInt();
int
out
=
ptr
->
data
(
m_index
,
AssetParameterModel
::
ParentDurationRole
).
toInt
();
QMap
<
QString
,
QVariant
>
map
;
int
in
=
ptr
->
data
(
m_index
,
AssetParameterModel
::
ParentInRole
).
toInt
();
int
out
=
in
+
ptr
->
data
(
m_index
,
AssetParameterModel
::
ParentDurationRole
).
toInt
();
QVariant
Map
map
;
for
(
const
auto
&
keyframe
:
m_keyframeList
)
{
map
.
insert
(
QString
::
number
(
in
+
keyframe
.
first
.
frames
(
pCore
->
getCurrentFps
())).
rightJustified
(
log10
((
double
)
out
)
+
1
,
'0'
),
keyframe
.
second
.
second
);
map
.
insert
(
QString
::
number
(
keyframe
.
first
.
frames
(
pCore
->
getCurrentFps
())).
rightJustified
(
log10
((
double
)
out
)
+
1
,
'0'
),
keyframe
.
second
.
second
);
}
doc
=
QJsonDocument
::
fromVariant
(
QVariant
(
map
)
)
;
doc
=
QJsonDocument
::
fromVariant
(
map
);
}
return
doc
.
toJson
();
}
...
...
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