aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorJacek Antonelli2010-08-01 00:08:39 -0500
committerJacek Antonelli2010-08-01 00:34:01 -0500
commit01c58ce93558875c857cf43a32e5d3ce14d74fd5 (patch)
treea0366d21165e44f5bdb8d6da1e78cc5ce5568583 /linden
parentTidied up and documented lightshare.cpp and lightshare.h. (diff)
downloadmeta-impy-01c58ce93558875c857cf43a32e5d3ce14d74fd5.zip
meta-impy-01c58ce93558875c857cf43a32e5d3ce14d74fd5.tar.gz
meta-impy-01c58ce93558875c857cf43a32e5d3ce14d74fd5.tar.bz2
meta-impy-01c58ce93558875c857cf43a32e5d3ce14d74fd5.tar.xz
Get user confirmation even when using default Windlight settings.
This might be end up being a bit annoying, but it limits the potential for abuse (e.g. a bad script that cycles between light and dark could trigger seizures in some users, and sheer annoyance in the rest). We may want to add region whitelists and blacklists later.
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/lightshare.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/linden/indra/newview/lightshare.cpp b/linden/indra/newview/lightshare.cpp
index 1d87ab1..28b3d97 100644
--- a/linden/indra/newview/lightshare.cpp
+++ b/linden/indra/newview/lightshare.cpp
@@ -112,10 +112,9 @@ void WindlightMessage::processWindlight(LLMessageSystem* msg, void**)
112 std::string water = LLWaterParamManager::instance()->mCurParams.mName; 112 std::string water = LLWaterParamManager::instance()->mCurParams.mName;
113 std::string sky = LLWLParamManager::instance()->mCurParams.mName; 113 std::string sky = LLWLParamManager::instance()->mCurParams.mName;
114 114
115 // If they are using the default or region settings, just apply 115 // If they are using region settings already, just apply the new
116 // the new settings, don't bother asking. 116 // settings, don't bother asking.
117 if( (sky == "Default" || sky == sSkyPresetName) && 117 if( sky == sSkyPresetName && water == sWaterPresetName )
118 (water == "Default" || water == sWaterPresetName) )
119 { 118 {
120 wl->apply(); 119 wl->apply();
121 delete wl; 120 delete wl;