]> git.sesse.net Git - kdenlive/blobdiff - src/geometryval.cpp
- Add ability to disable opacity in geometryval
[kdenlive] / src / geometryval.cpp
index c6fb07c6399678d48f981efeda60c7c5630a24ee..78874c13763275157323fbf25c3652bfff525509 100644 (file)
@@ -360,6 +360,10 @@ void Geometryval::setupParam(const QDomElement par, int minFrame, int maxFrame)
         m_helper->setHidden(true);
         spinPos->setHidden(true);
     }
+    if (par.attribute("opacity") == "false") {
+        label_opacity->setHidden(true);
+        spinTransp->setHidden(true);
+    }
     char *tmp = (char *) qstrdup(val.toUtf8().data());
     if (m_geom) m_geom->parse(tmp, maxFrame - minFrame, m_profile.width, m_profile.height);
     else m_geom = new Mlt::Geometry(tmp, maxFrame - minFrame, m_profile.width, m_profile.height);