diff --git a/source/backend/engine/CarlaEngine.cpp b/source/backend/engine/CarlaEngine.cpp index 547983187..da75fc38b 100644 --- a/source/backend/engine/CarlaEngine.cpp +++ b/source/backend/engine/CarlaEngine.cpp @@ -3126,6 +3126,9 @@ bool CarlaEngine::loadProjectInternal(water::XmlDocument& xmlDoc, const bool alw loadingAsExternal = ppos.pluginId < 0 || hasInternalPositions || !isPatchbay; + carla_debug("loadingAsExternal: %i because %i %i %i", + loadingAsExternal, ppos.pluginId < 0, hasInternalPositions, !isPatchbay); + if (name.isNotEmpty() && restorePatchbayGroupPosition(loadingAsExternal, ppos)) { if (name != ppos.name) diff --git a/source/backend/engine/CarlaEngineGraph.cpp b/source/backend/engine/CarlaEngineGraph.cpp index c69fe9ab0..1f969035e 100644 --- a/source/backend/engine/CarlaEngineGraph.cpp +++ b/source/backend/engine/CarlaEngineGraph.cpp @@ -2977,7 +2977,7 @@ bool CarlaEngine::restorePatchbayGroupPosition(const bool external, PatchbayPosi } uint groupId; - CARLA_SAFE_ASSERT_RETURN(graph->getGroupFromName(external, ppos.name, groupId), false); + CARLA_SAFE_ASSERT_INT_RETURN(graph->getGroupFromName(external, ppos.name, groupId), external, false); graph->setGroupPos(true, true, external, groupId, ppos.x1, ppos.y1, ppos.x2, ppos.y2);