From 37417720a873e63bb540870d5f1488914451ca15 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 4 Sep 2018 01:26:40 +0200 Subject: [PATCH] Fix loading preset as project file from CLI --- source/backend/engine/CarlaEngine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/backend/engine/CarlaEngine.cpp b/source/backend/engine/CarlaEngine.cpp index 1df189501..0516b3e32 100644 --- a/source/backend/engine/CarlaEngine.cpp +++ b/source/backend/engine/CarlaEngine.cpp @@ -2078,7 +2078,7 @@ bool CarlaEngine::loadProjectInternal(water::XmlDocument& xmlDoc) return true; // now setup transport - if (XmlElement* const elem = isPreset || isPlugin ? nullptr : xmlElement->getChildByName("Transport")) + if (XmlElement* const elem = (isPreset || isPlugin) ? nullptr : xmlElement->getChildByName("Transport")) { if (XmlElement* const bpmElem = elem->getChildByName("BeatsPerMinute")) { @@ -2286,7 +2286,10 @@ bool CarlaEngine::loadProjectInternal(water::XmlDocument& xmlDoc) } if (isPreset) + { + callback(ENGINE_CALLBACK_PROJECT_LOAD_FINISHED, 0, 0, 0, 0.0f, nullptr); return true; + } } #ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH