when connected to controller and returning current value, respect step-property of automatableModel
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1447 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -118,10 +118,15 @@ public:
|
||||
{
|
||||
if( m_controllerConnection != NULL )
|
||||
{
|
||||
return minValue<T>() +
|
||||
const float v = minValue<T>() +
|
||||
castValue<T>( m_range *
|
||||
m_controllerConnection->currentValue(
|
||||
_frameOffset ) );
|
||||
if( m_step != 0 )
|
||||
{
|
||||
return( roundf( v / m_step ) * m_step );
|
||||
}
|
||||
return( v );
|
||||
}
|
||||
|
||||
return castValue<T>( m_value );
|
||||
|
||||
Reference in New Issue
Block a user