mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 02:29:49 -06:00
Remove warnings on MSVC
This commit is contained in:
@@ -241,8 +241,8 @@ RenderableNodeLine::RenderableNodeLine(const ghoul::Dictionary& dictionary)
|
||||
}
|
||||
else {
|
||||
// Recompute relative values to meters
|
||||
_startOffset = _startOffset * startNode->boundingSphere();
|
||||
_endOffset = _endOffset * endNode->boundingSphere();
|
||||
_startOffset = static_cast<float>(_startOffset * startNode->boundingSphere());
|
||||
_endOffset = static_cast<float>(_endOffset * endNode->boundingSphere());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ void RenderableTrailTrajectory::update(const UpdateData& data) {
|
||||
unsigned int stopIndex = std::min(nextIndex, _numberOfVertices);
|
||||
|
||||
// Calculate all vertex positions
|
||||
for (int i = startIndex; i < stopIndex; ++i) {
|
||||
for (unsigned int i = startIndex; i < stopIndex; ++i) {
|
||||
const glm::vec3 p = _translation->position({
|
||||
{},
|
||||
Time(_start + i * _totalSampleInterval),
|
||||
|
||||
Reference in New Issue
Block a user