Commit d250cece authored by Vincent Pinon's avatar Vincent Pinon
Browse files

fix effects parameters operations parsing

parent a93dba39
......@@ -15,10 +15,10 @@
<parameter type="constant" name="Clip bottom" max="%height-1" min="0" default="0" factor="%height">
<name>Crop bottom</name>
</parameter>
<parameter type="constant" name="Scale X" max="1000" min="1" default="50" factor="100">
<parameter type="constant" name="Scale X" max="1000" min="1" default="100" factor="200">
<name>Scale X</name>
</parameter>
<parameter type="constant" name="Scale Y" max="1000" min="1" default="50" factor="100">
<parameter type="constant" name="Scale Y" max="1000" min="1" default="100" factor="200">
<name>Scale Y</name>
</parameter>
<parameter type="constant" name="Tilt X" max="%width" min="0" default="%width/2" factor="%width">
......
......@@ -505,7 +505,7 @@ QVariant AssetParameterModel::parseAttribute(const ObjectId &owner, const QStrin
if (type == ParamType::Double) {
// Use a Mlt::Properties to parse mathematical operators
Mlt::Properties p;
p.set("eval", content.toLatin1().constData());
p.set("eval", content.prepend(QLatin1Char('@')).toLatin1().constData());
return p.get_double("eval");
}
} else if (type == ParamType::Double || type == ParamType::Hidden) {
......
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