Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
fc8be512
Commit
fc8be512
authored
Feb 11, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rotoscoping broken in some circumstances on cut clips
parent
bbc4d01a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/assets/keyframes/model/keyframemodel.cpp
src/assets/keyframes/model/keyframemodel.cpp
+5
-5
No files found.
src/assets/keyframes/model/keyframemodel.cpp
View file @
fc8be512
...
...
@@ -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
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