From: Till Theato Date: Sat, 23 Oct 2010 17:52:20 +0000 (+0000) Subject: Initialise parameters with only one keyframe (instead of two) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5d091cff6f40de521cc59d710404444aa99f4250;p=kdenlive Initialise parameters with only one keyframe (instead of two) svn path=/trunk/kdenlive/; revision=5035 --- diff --git a/src/clipitem.cpp b/src/clipitem.cpp index b5791614..f26e5324 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -247,7 +247,7 @@ void ClipItem::initEffect(QDomElement effect, int diff) QString def = e.attribute("default"); // Effect has a keyframe type parameter, we need to set the values if (e.attribute("keyframes").isEmpty()) { - e.setAttribute("keyframes", QString::number(cropStart().frames(m_fps)) + ':' + def + ';' + QString::number((cropStart() + cropDuration()).frames(m_fps) - 1) + ':' + def); + e.setAttribute("keyframes", QString::number(cropStart().frames(m_fps)) + ':' + def); kDebug() << "///// EFFECT KEYFRAMES INITED: " << e.attribute("keyframes"); //break; } diff --git a/src/effectstackedit.cpp b/src/effectstackedit.cpp index c127c3ab..8f5eb0ac 100644 --- a/src/effectstackedit.cpp +++ b/src/effectstackedit.cpp @@ -285,7 +285,7 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in connect(this, SIGNAL(syncEffectsPos(int)), geo, SLOT(slotSyncPosition(int))); } } else if (type == "keyframe" || type == "simplekeyframe") { - // keyframe editor widget + // keyframe editor widget kDebug() << "min: " << m_in << ", MAX: " << m_out; if (m_keyframeEditor == NULL) { KeyframeEdit *geo = new KeyframeEdit(pa, m_in, m_in + m_out, pa.attribute("min").toInt(), pa.attribute("max").toInt(), m_timecode, e.attribute("active_keyframe", "-1").toInt());