Fix converting of old volume effect with constant value

parent 7d2d8c30
...@@ -1545,9 +1545,12 @@ void DocumentValidator::convertKeyframeEffect(QDomElement effect, QStringList pa ...@@ -1545,9 +1545,12 @@ void DocumentValidator::convertKeyframeEffect(QDomElement effect, QStringList pa
{ {
QLocale locale; QLocale locale;
int in = effect.attribute(QStringLiteral("in")).toInt() - offset; int in = effect.attribute(QStringLiteral("in")).toInt() - offset;
int out = effect.attribute(QStringLiteral("out")).toInt() - offset;
values.insert(in, locale.toDouble(EffectsList::property(effect, params.at(0)))); values.insert(in, locale.toDouble(EffectsList::property(effect, params.at(0))));
values.insert(out, locale.toDouble(EffectsList::property(effect, params.at(1)))); QString endValue = EffectsList::property(effect, params.at(1));
if (!endValue.isEmpty()) {
int out = effect.attribute(QStringLiteral("out")).toInt() - offset;
values.insert(out, locale.toDouble(endValue));
}
} }
void DocumentValidator::updateProducerInfo(QDomElement prod, const QDomElement source) void DocumentValidator::updateProducerInfo(QDomElement prod, const QDomElement source)
......
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