Commit 2d9c9988 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectInstance: Use computed SettingValue flags when creating a setting.

parent 1b00b7e7
......@@ -61,7 +61,7 @@ EffectInstance::settingValueFactory( Effect::Parameter *info, quint32 index )
if ( info->type == F0R_PARAM_DOUBLE )
flags = SettingValue::Clamped;
EffectSettingValue *val = new EffectSettingValue( EffectSettingValue::frei0rToVlmc( info->type ),
this, index, info->name, info->desc );
this, index, info->name, info->desc, flags );
if ( info->type == F0R_PARAM_DOUBLE )
val->setLimits( 0.0, 1.0 );
return val;
......
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