From 2ac234ecca5e0d7feb15c42e194c74d1ef14d3b5 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Thu, 12 Feb 2026 17:18:36 -0700 Subject: [PATCH] Levels work --- gui/BezierConnectionPainter.cpp | 10 ++++++++++ gui/SquareConnectionPainter.cpp | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/gui/BezierConnectionPainter.cpp b/gui/BezierConnectionPainter.cpp index 423d48e..54155c6 100644 --- a/gui/BezierConnectionPainter.cpp +++ b/gui/BezierConnectionPainter.cpp @@ -45,6 +45,16 @@ void BezierConnectionPainter::paint( auto cId = cgo.connectionId(); if (model->connectionExists(cId)) { peakLevel = model->nodePeakLevel(cId.outNodeId); + + if (peakLevel < 0.005f) { + auto const *outData = model->warpNodeData(cId.outNodeId); + if (outData && + WarpGraphModel::classifyNode(outData->info) == + WarpNodeType::kApplication) { + peakLevel = std::max(peakLevel, + model->nodePeakLevel(cId.inNodeId)); + } + } } } } diff --git a/gui/SquareConnectionPainter.cpp b/gui/SquareConnectionPainter.cpp index 8d449a8..226e897 100644 --- a/gui/SquareConnectionPainter.cpp +++ b/gui/SquareConnectionPainter.cpp @@ -205,6 +205,16 @@ void SquareConnectionPainter::paint( auto cId = cgo.connectionId(); if (model->connectionExists(cId)) { peakLevel = model->nodePeakLevel(cId.outNodeId); + + if (peakLevel < 0.005f) { + auto const *outData = model->warpNodeData(cId.outNodeId); + if (outData && + WarpGraphModel::classifyNode(outData->info) == + WarpNodeType::kApplication) { + peakLevel = std::max(peakLevel, + model->nodePeakLevel(cId.inNodeId)); + } + } } } }