Commit 0aa7dd79 authored by Steinar H. Gunderson's avatar Steinar H. Gunderson Committed by Vincent Pinon

Copy the boolean heuristic detection from effects to transitions.

This makes the “Reverse” checkbox for the movit mix effect work.
parent a693fcca
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment