fixes the wrong order of controller by loading a project (#3438)
* fixes the wrong order of controller by loading a project * changes the approach for the fix
This commit is contained in:
committed by
Javier Serrano Polo
parent
9543800c32
commit
17a6f379e0
@@ -67,7 +67,10 @@ PeakControllerEffect::PeakControllerEffect(
|
||||
m_autoController( NULL )
|
||||
{
|
||||
m_autoController = new PeakController( Engine::getSong(), this );
|
||||
Engine::getSong()->addController( m_autoController );
|
||||
if( !Engine::getSong()->isLoadingProject() )
|
||||
{
|
||||
Engine::getSong()->addController( m_autoController );
|
||||
}
|
||||
PeakController::s_effects.append( this );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user