mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +02:00
fix size_t warning
This commit is contained in:
parent
1570c59a45
commit
02e730a4d9
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ void MultiSphereShape::spheresFromAxes(const std::vector<glm::vec3>& points, con
|
|||
for (size_t i = 0; i < spheres.size() - 1; i++) {
|
||||
for (size_t j = i + 1; j < spheres.size(); j++) {
|
||||
if (i != j) {
|
||||
int maxRadiusIndex = spheres[i]._radius > spheres[j]._radius ? i : j;
|
||||
size_t maxRadiusIndex = spheres[i]._radius > spheres[j]._radius ? i : j;
|
||||
if (glm::length(spheres[i]._position - spheres[j]._position) < 0.2f * spheres[maxRadiusIndex]._radius) {
|
||||
SphereShapeData newSphere;
|
||||
newSphere._position = _midPoint;
|
||||
|
|
Loading…
Reference in a new issue