Commit 9f353c19 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix some effects default params on locales with comma

Fixes #242
parent ed02d641
Pipeline #4259 passed with stage
in 18 minutes and 47 seconds
......@@ -528,6 +528,9 @@ QVariant AssetParameterModel::parseAttribute(const ObjectId &owner, const QStrin
return p.get_double("eval");
}
} else if (type == ParamType::Double || type == ParamType::Hidden) {
if (attribute == QLatin1String("default")) {
return content.toDouble();
}
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
return locale.toDouble(content);
......
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