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)); + } + } } } }