From bb5fe13e1395775dfe66f587a3bba01371b6feef Mon Sep 17 00:00:00 2001 From: psi29a Date: Wed, 29 Apr 2020 23:06:44 +0000 Subject: [PATCH] Make sure it is either one or the other with the default to bounding volumes. --- components/sceneutil/shadow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sceneutil/shadow.cpp b/components/sceneutil/shadow.cpp index f6858fca00..0476768f8c 100644 --- a/components/sceneutil/shadow.cpp +++ b/components/sceneutil/shadow.cpp @@ -43,7 +43,7 @@ namespace SceneUtil std::string computeNearFarMode = Settings::Manager::getString("near far computation", "Shadows"); if (Misc::StringUtils::lowerCase(computeNearFarMode) == "primitives") mShadowSettings->setComputeNearFarModeOverride(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES); - else if (Misc::StringUtils::lowerCase(computeNearFarMode) == "bounding volumes") + else mShadowSettings->setComputeNearFarModeOverride(osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES); int mapres = Settings::Manager::getInt("shadow map resolution", "Shadows");