From ec64de072352c17a025e073114aaaea6ba773822 Mon Sep 17 00:00:00 2001 From: T0NIT0 RMX Date: Tue, 14 May 2019 21:19:30 +0200 Subject: [PATCH] Fixes #4781: Don't disconnect LADSPA automation on export --- src/core/AutomationPattern.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/AutomationPattern.cpp b/src/core/AutomationPattern.cpp index 2ee41b5f2..827f207dc 100644 --- a/src/core/AutomationPattern.cpp +++ b/src/core/AutomationPattern.cpp @@ -796,6 +796,16 @@ void AutomationPattern::resolveAllIDs() { a->addObject( dynamic_cast( 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( o ) ) + { + a->addObject( dynamic_cast( o ), false ); + } + } } } a->m_idsToResolve.clear();