Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9838f059 authored by Vincent Pinon's avatar Vincent Pinon

Fix old keyframes doubling effect on nodes

parent 47567f07
......@@ -2373,6 +2373,11 @@ bool Render::addFilterToService(Mlt::Service service, EffectsParameterList param
int x2 = keyFrames.at(i + 1).section('=', 0, 0).toInt();
double y2 = keyFrames.at(i + 1).section('=', 1, 1).toDouble();
if (x2 == -1) x2 = duration;
// non-overlapping sections
if (i > 0) {
y1 += (y2 - y1) / (x2 - x1);
++x1;
}
for (int j = 0; j < params.count(); ++j) {
filter->set(params.at(j).name().toUtf8().constData(), params.at(j).value().toUtf8().constData());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment