Levels work
This commit is contained in:
parent
2208483123
commit
2ac234ecca
2 changed files with 20 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue