fix dropdown option

This was SVN commit r17719.
This commit is contained in:
mimo 2016-01-28 18:44:50 +00:00
parent 30d0bcd350
commit c46e64c4d2

View file

@ -187,7 +187,7 @@ function setupControl(option, i, category, revert)
{
case "config":
key = option.parameters.config;
let val = Engine.ConfigDB_GetValue("user", key);
let val = +Engine.ConfigDB_GetValue("user", key);
if (key === "materialmgr.quality")
val = val > 5 ? 2 : val > 2 ? 1 : 0;
control.selected = val;