Skip to content

Commit

Permalink
Fixes #4781: Don't disconnect LADSPA automation on export
Browse files Browse the repository at this point in the history
  • Loading branch information
T0NIT0RMX authored and JohannesLorenz committed May 14, 2019
1 parent 4b4b470 commit ec64de0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/core/AutomationPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,16 @@ void AutomationPattern::resolveAllIDs()
{
a->addObject( dynamic_cast<AutomatableModel *>( o ), false );
}
else
{
// FIXME: Remove this block once the automation system gets fixed
// This is a temporary fix for https://github.com/LMMS/lmms/issues/4781
o = Engine::projectJournal()->journallingObject(ProjectJournal::idToSave(*k));
if( o && dynamic_cast<AutomatableModel *>( o ) )
{
a->addObject( dynamic_cast<AutomatableModel *>( o ), false );
}
}
}
}
a->m_idsToResolve.clear();
Expand Down

0 comments on commit ec64de0

Please sign in to comment.