[vlmc-devel] EffectInstance: Use computed SettingValue flags when creating a setting.

Hugo Beauzée-Luyssen git at videolan.org
Sun Sep 2 13:37:34 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Sep  1 17:39:52 2012 +0300| [2d9c998855baa841b85e995ddc1b995a52ee5401] | committer: Hugo Beauzée-Luyssen

EffectInstance: Use computed SettingValue flags when creating a setting.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2d9c998855baa841b85e995ddc1b995a52ee5401
---

 src/EffectsEngine/EffectInstance.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/EffectsEngine/EffectInstance.cpp b/src/EffectsEngine/EffectInstance.cpp
index c9cbfba..9880a6f 100644
--- a/src/EffectsEngine/EffectInstance.cpp
+++ b/src/EffectsEngine/EffectInstance.cpp
@@ -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;



More information about the Vlmc-devel mailing list