]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
Keyframable rotation for affine transition
[kdenlive] / src / renderer.cpp
index 818797abdc6df6395a1dfebf12e6eaf3c296941c..5d3699d9b21ea801a05f219d5e0321297fb90e63 100644 (file)
@@ -3573,8 +3573,8 @@ QMap<QString, QString> Render::mltGetTransitionParamsFromXml(QDomElement xml)
         if (!e.attribute("value").isEmpty()) {
             map[name] = e.attribute("value");
         }
-        if (!e.attribute("factor").isEmpty() && e.attribute("factor").toDouble() > 0) {
-            map[name] = QString::number(map[name].toDouble() / e.attribute("factor").toDouble());
+        if (e.attribute("type") != "addedgeometry" && !e.attribute("factor").isEmpty() && e.attribute("factor").toDouble() > 0) {
+            map[name] = QString::number(map.value(name).toDouble() / e.attribute("factor").toDouble());
             //map[name]=map[name].replace(".",","); //FIXME how to solve locale conversion of . ,
         }