Readability fix

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
This commit is contained in:
Adam Rohdin
2023-06-08 09:02:07 +02:00
committed by GitHub
parent 8629ee6330
commit f732702680

View File

@@ -225,8 +225,9 @@ void RenderableTrailTrajectory::update(const UpdateData& data) {
// We need to recalcuate the _totalSampleInterval if _numberOfVertices eqals
// maxNumberOfVertices. If we don't do this the position for each vertex
// will not be correct for the number of vertices we are doing along the trail
_totalSampleInterval = std::max(1.0, (_numberOfVertices == maxNumberOfVertices) ?
(timespan / _numberOfVertices) : _totalSampleInterval);
_totalSampleInterval = (_numberOfVertices == maxNumberOfVertices) ?
(timespan / _numberOfVertices) : _totalSampleInterval;
_totalSampleInterval = std::max(1.0, _totalSampleInterval);
// Make space for the vertices
_vertexArray.clear();