mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 10:40:09 -06:00
Address PR comments
This commit is contained in:
@@ -127,15 +127,10 @@ RenderableModelProjection::RenderableModelProjection(const ghoul::Dictionary& di
|
||||
p.projection
|
||||
);
|
||||
|
||||
double boundingSphereRadius = 1.0e9;
|
||||
if (p.boundingSphereRadius.has_value()) {
|
||||
boundingSphereRadius = *p.boundingSphereRadius;
|
||||
}
|
||||
double boundingSphereRadius = p.boundingSphereRadius.value_or(1.0e9);
|
||||
setBoundingSphere(boundingSphereRadius);
|
||||
|
||||
if (p.performShading.has_value()) {
|
||||
_performShading = *p.performShading;
|
||||
}
|
||||
_performShading = p.performShading.value_or(_performShading);
|
||||
|
||||
addProperty(_performShading);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user