From f3e4009355bff682d8e0494e188abb539874541f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 17 Jan 2014 00:47:11 +0100 Subject: [PATCH] Copy the boolean heuristic detection from effects to transitions. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This makes the “Reverse” checkbox for the movit mix effect work. --- src/initeffects.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"); -- 2.39.2