X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Finiteffects.cpp;h=a9dd406bf302b2489c558395a4a98d60f8c330df;hb=f3e4009355bff682d8e0494e188abb539874541f;hp=db081873ccf004a6591510126caa9857ace75135;hpb=0e89403638541b6236ad1b78dfeb9eebc0ce9767;p=kdenlive diff --git a/src/initeffects.cpp b/src/initeffects.cpp index db081873..a9dd406b 100644 --- a/src/initeffects.cpp +++ b/src/initeffects.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include @@ -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");