Levels work

This commit is contained in:
Joey Yakimowich-Payne 2026-02-12 17:18:36 -07:00
commit 2ac234ecca
2 changed files with 20 additions and 0 deletions

View file

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

View file

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