diff --git a/include/automation_pattern.h b/include/automation_pattern.h index cd6fe0892..d0db10f57 100644 --- a/include/automation_pattern.h +++ b/include/automation_pattern.h @@ -90,6 +90,16 @@ public: void processMidiTime( const midiTime & _time ); + inline bool updateFirst( void ) + { + return( m_update_first ); + } + + inline void setUpdateFirst( bool _update ) + { + m_update_first = _update; + } + protected slots: void openInAutomationEditor( void ); @@ -100,6 +110,7 @@ private: track * m_track; levelObject * m_object; timeMap m_time_map; + bool m_update_first; void init( void ); diff --git a/src/tracks/automation_pattern.cpp b/src/tracks/automation_pattern.cpp index 728504aa0..a3c76e9e2 100644 --- a/src/tracks/automation_pattern.cpp +++ b/src/tracks/automation_pattern.cpp @@ -49,7 +49,8 @@ automationPattern::automationPattern ( track * _track, levelObject * _object ) : journallingObject( _track->eng() ), m_track( _track ), - m_object( _object ) + m_object( _object ), + m_update_first( TRUE ) { init(); } @@ -60,7 +61,8 @@ automationPattern::automationPattern ( track * _track, levelObject * _object ) : automationPattern::automationPattern( const automationPattern & _pat_to_copy ) : journallingObject( _pat_to_copy.m_track->eng() ), m_track( _pat_to_copy.m_track ), - m_object( _pat_to_copy.m_object ) + m_object( _pat_to_copy.m_object ), + m_update_first( _pat_to_copy.m_update_first ) { for( timeMap::const_iterator it = _pat_to_copy.m_time_map.begin(); it != _pat_to_copy.m_time_map.end(); ++it )