]> git.sesse.net Git - kdenlive/commitdiff
Save transition status when changed (automatic or not)
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 5 Oct 2009 17:35:35 +0000 (17:35 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 5 Oct 2009 17:35:35 +0000 (17:35 +0000)
svn path=/trunk/kdenlive/; revision=4003

src/customtrackview.cpp
src/renderer.cpp

index 132601ca764e8fb337edb6419ded4a5e2734190d..5430d3879423e425ef5f155a43781ffabdde26e9 100644 (file)
@@ -4768,6 +4768,7 @@ void CustomTrackView::autoTransition()
     tr->setAutomatic(!tr->isAutomatic());
     QDomElement transition = tr->toXML();
     m_document->renderer()->mltUpdateTransition(transition.attribute("tag"), transition.attribute("tag"), transition.attribute("transition_btrack").toInt(), m_document->tracksCount() - transition.attribute("transition_atrack").toInt(), tr->startPos(), tr->endPos(), transition);
+    setDocumentModified();
 }
 
 
index e1ae598a5b2b5145e1d1f250a6dc427c094ee0bc..21d15db84bc8a6ecd39f79fd9578de6ea5374b86 100644 (file)
@@ -2977,6 +2977,7 @@ void Render::mltUpdateTransitionParams(QString type, int a_track, int b_track, G
             QString key;
             mlt_properties transproperties = MLT_TRANSITION_PROPERTIES(tr);
             mlt_properties_set_int(transproperties, "force_track", xml.attribute("force_track").toInt());
+            mlt_properties_set_int(transproperties, "automatic", xml.attribute("automatic", "0").toInt());
             // update the transition id in case it uses the same MLT service but different Kdenlive id
             char *tmp = decodedString(xml.attribute("id"));
             mlt_properties_set(transproperties, "kdenlive_id", tmp);