From: Steinar H. Gunderson Date: Thu, 16 Jan 2014 23:47:11 +0000 (+0100) Subject: Copy the boolean heuristic detection from effects to transitions. X-Git-Url: https://git.sesse.net/?p=kdenlive;a=commitdiff_plain;h=f3e4009355bff682d8e0494e188abb539874541f Copy the boolean heuristic detection from effects to transitions. This makes the “Reverse” checkbox for the movit mix effect work. --- diff --git a/src/initeffects.cpp b/src/initeffects.cpp index a8c80466..a9dd406b 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");