Address Ghoul PR comments

This commit is contained in:
Malin Ejdbo
2021-02-05 11:17:33 +01:00
parent 1502e75c43
commit 08e2c3fb41
3 changed files with 5 additions and 6 deletions

View File

@@ -441,9 +441,9 @@ void RenderableModel::initializeGL() {
ghoul::opengl::updateUniformLocations(*_program, _uniformCache, UniformNames);
float maximumDistanceSquared = 0;
_geometry->initialize(maximumDistanceSquared);
setBoundingSphere(glm::sqrt(maximumDistanceSquared));
_geometry->initialize();
_geometry->calculateBoundingRadius();
setBoundingSphere(glm::sqrt(_geometry->boundingRadius()));
}
void RenderableModel::deinitializeGL() {

View File

@@ -250,8 +250,7 @@ void RenderableModelProjection::initializeGL() {
_projectionComponent.initializeGL();
float bs = boundingSphere();
float temp = 0.f;
_geometry->initialize(temp);
_geometry->initialize();
setBoundingSphere(bs); // ignore bounding sphere set by geometry.
}