Kicker 'version' 0 on first save

This commit is contained in:
Oskar Wallgren
2016-03-15 11:06:19 +01:00
parent 9e98a16a8a
commit b34c382750

View File

@@ -71,7 +71,7 @@ kickerInstrument::kickerInstrument( InstrumentTrack * _instrument_track ) :
m_slopeModel( 0.06f, 0.001f, 1.0f, 0.001f, this, tr( "Frequency Slope" ) ),
m_startNoteModel( true, this, tr( "Start from note" ) ),
m_endNoteModel( false, this, tr( "End to note" ) ),
m_versionModel( 0, 0, KICKER_PRESET_VERSION, this, "" )
m_versionModel( KICKER_PRESET_VERSION, 0, KICKER_PRESET_VERSION, this, "" )
{
}
@@ -137,7 +137,7 @@ void kickerInstrument::loadSettings( const QDomElement & _this )
// Try to maintain backwards compatibility
if( !_this.hasAttribute( "version" ) )
{
m_startNoteModel.setValue( false );
m_decayModel.setValue( m_decayModel.value() * 1.33f );
m_envModel.setValue( 1.0f );
m_slopeModel.setValue( 1.0f );