diff options
Diffstat (limited to 'src/Models.cpp')
| -rw-r--r-- | src/Models.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Models.cpp b/src/Models.cpp index e706ebf..a414008 100644 --- a/src/Models.cpp +++ b/src/Models.cpp @@ -52,7 +52,7 @@ void Model::CalculateNormals() boundingsphereradius = 0; for (int i = 0; i < vertexNum; ++i) boundingsphereradius = std::max(boundingsphereradius, - findDistancefast(boundingspherecenter, vertex[i])); + sqrlen(boundingspherecenter - vertex[i])); boundingsphereradius = sqrt(boundingsphereradius); } |
