From 019b2b794cf6c00c4bfd6e4c921f4852f505a70c Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 12 Jul 2020 04:18:44 +0100 Subject: [PATCH] Some debug messages to help catch future issues Signed-off-by: falkTX --- source/backend/engine/CarlaEngine.cpp | 3 +++ source/backend/engine/CarlaEngineGraph.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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);