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 ...@@ -2373,6 +2373,11 @@ bool Render::addFilterToService(Mlt::Service service, EffectsParameterList param
int x2 = keyFrames.at(i + 1).section('=', 0, 0).toInt(); int x2 = keyFrames.at(i + 1).section('=', 0, 0).toInt();
double y2 = keyFrames.at(i + 1).section('=', 1, 1).toDouble(); double y2 = keyFrames.at(i + 1).section('=', 1, 1).toDouble();
if (x2 == -1) x2 = duration; 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) { for (int j = 0; j < params.count(); ++j) {
filter->set(params.at(j).name().toUtf8().constData(), params.at(j).value().toUtf8().constData()); 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