Commit 64362c30 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix pasting effect with keyframes partially broken

parent a77cecae
......@@ -346,6 +346,7 @@ bool EffectStackModel::fromXml(const QDomElement &effectsXml, Fun &undo, Fun &re
int currentDuration = pCore->getItemDuration(m_ownerId);
if (currentDuration > 1) {
currentDuration--;
currentDuration += currentIn;
}
QString pValue = KeyframeModel::getAnimationStringWithOffset(effect, pnode.text(), currentIn - parentIn, currentDuration);
parameters.append(QPair<QString, QVariant>(pName, QVariant(pValue)));
......
Supports Markdown
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