]> git.sesse.net Git - kdenlive/commitdiff
Initialise parameters with only one keyframe (instead of two)
authorTill Theato <root@ttill.de>
Sat, 23 Oct 2010 17:52:20 +0000 (17:52 +0000)
committerTill Theato <root@ttill.de>
Sat, 23 Oct 2010 17:52:20 +0000 (17:52 +0000)
svn path=/trunk/kdenlive/; revision=5035

src/clipitem.cpp
src/effectstackedit.cpp

index b5791614e831521330c41372cb969fc936ae16dc..f26e53241629c8112fef04a79c874112159f43e9 100644 (file)
@@ -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;
             }
index c127c3abedc976e57ecb4fb9ec20b6cf04fb748a..8f5eb0ac4ba8dde8c27fdb51acf43bbcdd8a9a46 100644 (file)
@@ -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());