restored old controller-behaviour for all models whose step-size is not 1, i.e. only round for integer models
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1457 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
|
||||
2008-08-20 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* include/automatable_model.h:
|
||||
restored old controller-behaviour for all models whose step-size is
|
||||
not 1, i.e. only round for integer models
|
||||
|
||||
* plugins/sid/sid_instrument.h:
|
||||
* plugins/sid/test.png:
|
||||
* plugins/sid/sid_instrument.cpp:
|
||||
|
||||
@@ -122,9 +122,9 @@ public:
|
||||
castValue<T>( m_range *
|
||||
m_controllerConnection->currentValue(
|
||||
_frameOffset ) );
|
||||
if( m_step != 0 )
|
||||
if( m_step == 1 )
|
||||
{
|
||||
return( roundf( v / m_step ) * m_step );
|
||||
return( roundf( v ) );
|
||||
}
|
||||
return( v );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user