Browse Source

Fix loading internal patchbay connections in multi-client mode

tags/1.9.8
falkTX 7 years ago
parent
commit
089546660a
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      source/backend/engine/CarlaEngine.cpp

+ 11
- 1
source/backend/engine/CarlaEngine.cpp View File

@@ -2254,6 +2254,7 @@ bool CarlaEngine::loadProjectInternal(water::XmlDocument& xmlDoc)
{ {
const String& tagName(elem->getTagName()); const String& tagName(elem->getTagName());


// only load internal patchbay connections
if (! tagName.equalsIgnoreCase("patchbay")) if (! tagName.equalsIgnoreCase("patchbay"))
continue; continue;


@@ -2317,8 +2318,17 @@ bool CarlaEngine::loadProjectInternal(water::XmlDocument& xmlDoc)
{ {
const String& tagName(elem->getTagName()); const String& tagName(elem->getTagName());


if (! tagName.equalsIgnoreCase("externalpatchbay"))
// check if we want to load patchbay-mode connections into an external (multi-client) graph
if (tagName.equalsIgnoreCase("patchbay"))
{
if (pData->options.processMode == ENGINE_PROCESS_MODE_PATCHBAY)
continue;
}
// or load external patchbay connections
else if (! tagName.equalsIgnoreCase("externalpatchbay"))
{
continue; continue;
}


CarlaString sourcePort, targetPort; CarlaString sourcePort, targetPort;




Loading…
Cancel
Save