summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sgunderson@bigfoot.com>2014-01-16 23:47:11 (GMT)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>2014-03-13 21:16:54 (GMT)
commitf3e4009355bff682d8e0494e188abb539874541f (patch)
tree2c55e12640c120a4b4268f740eb845807eb0a0d1
parent1b28a1f6120bc1c38750aab05c059bc8210b6418 (diff)
Copy the boolean heuristic detection from effects to transitions.
This makes the “Reverse” checkbox for the movit mix effect work.
-rw-r--r--src/initeffects.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/initeffects.cpp b/src/initeffects.cpp
index a8c8046..a9dd406 100644
--- a/src/initeffects.cpp
+++ b/src/initeffects.cpp
@@ -617,8 +617,12 @@ void initEffects::fillTransitionsList(Mlt::Repository *repository, EffectsList *
if (paramdesc.get("minimum"))
params.setAttribute("min", paramdesc.get("minimum"));
if (QString(paramdesc.get("type")) == "integer") {
- params.setAttribute("type", "constant");
- params.setAttribute("factor", "100");
+ if (params.attribute("min") == "0" && params.attribute("max") == "1")
+ params.setAttribute("type", "bool");
+ else {
+ params.setAttribute("type", "constant");
+ params.setAttribute("factor", "100");
+ }
}
if (QString(paramdesc.get("type")) == "boolean")
params.setAttribute("type", "bool");