diff options
author | Jacek Antonelli | 2010-08-01 00:08:39 -0500 |
---|---|---|
committer | Jacek Antonelli | 2010-08-01 00:34:01 -0500 |
commit | 01c58ce93558875c857cf43a32e5d3ce14d74fd5 (patch) | |
tree | a0366d21165e44f5bdb8d6da1e78cc5ce5568583 | |
parent | Tidied up and documented lightshare.cpp and lightshare.h. (diff) | |
download | meta-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.
-rw-r--r-- | linden/indra/newview/lightshare.cpp | 7 |
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; |