Fix to previous - use value<float>() instead of making an unnecessary new function... also accidentally didn't upload the new image last time

This commit is contained in:
Vesa
2014-05-04 22:54:06 +03:00
parent 4564ed14cd
commit 62068684c2
3 changed files with 1 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

View File

@@ -133,16 +133,6 @@ public:
float controllerValue( int frameOffset ) const;
// get value always in float - for automation recording
inline float getValue( int frameOffset = 0 ) const
{
if( unlikely( m_hasLinkedModels || m_controllerConnection != NULL ) )
{
return controllerValue( frameOffset );
}
return m_value;
}
template<class T>
T initValue() const
{

View File

@@ -493,7 +493,7 @@ void AutomationPattern::processMidiTime( const MidiTime & time )
{
if( time >= 0 && hasAutomation() && ! m_objects.isEmpty() )
{
const float value = static_cast<float>( firstObject()->getValue() );
const float value = static_cast<float>( firstObject()->value<float>() );
if( value != m_lastRecordedValue )
{
putValue( time, value, true );