diff options
author | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
commit | 7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd (patch) | |
tree | 0243666021de3ae6ac61a6c6f4e57d42771fe964 /linden/indra/newview/llfloatersettingsdebug.cpp | |
parent | Applied BlockClickSit debug setting from Emerald to block sit click action (diff) | |
download | meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.zip meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.gz meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.bz2 meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.xz |
Merged in jacek/next
Diffstat (limited to 'linden/indra/newview/llfloatersettingsdebug.cpp')
-rw-r--r-- | linden/indra/newview/llfloatersettingsdebug.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatersettingsdebug.cpp b/linden/indra/newview/llfloatersettingsdebug.cpp index e440c4a..58f37c5 100644 --- a/linden/indra/newview/llfloatersettingsdebug.cpp +++ b/linden/indra/newview/llfloatersettingsdebug.cpp | |||
@@ -39,6 +39,11 @@ | |||
39 | #include "llcolorswatch.h" | 39 | #include "llcolorswatch.h" |
40 | #include "llviewercontrol.h" | 40 | #include "llviewercontrol.h" |
41 | 41 | ||
42 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0g) | ||
43 | #include "rlvhandler.h" | ||
44 | #include "rlvextensions.h" | ||
45 | // [/RLVa:KB] | ||
46 | |||
42 | LLFloaterSettingsDebug* LLFloaterSettingsDebug::sInstance = NULL; | 47 | LLFloaterSettingsDebug* LLFloaterSettingsDebug::sInstance = NULL; |
43 | 48 | ||
44 | LLFloaterSettingsDebug::LLFloaterSettingsDebug() : LLFloater(std::string("Configuration Editor")) | 49 | LLFloaterSettingsDebug::LLFloaterSettingsDebug() : LLFloater(std::string("Configuration Editor")) |
@@ -239,6 +244,32 @@ void LLFloaterSettingsDebug::updateControl(LLControlVariable* controlp) | |||
239 | 244 | ||
240 | if (controlp) | 245 | if (controlp) |
241 | { | 246 | { |
247 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.1d | ||
248 | if (rlv_handler_t::isEnabled()) | ||
249 | { | ||
250 | // Don't allow changing DBG_WRITE debug settings under @setdebug=n | ||
251 | bool fEnable = !( (gRlvHandler.hasBehaviour(RLV_BHVR_SETDEBUG)) && | ||
252 | (RlvExtGetSet::getDebugSettingFlags(controlp->getName()) & RlvExtGetSet::DBG_WRITE) ); | ||
253 | // Don't allow toggling "Basic Shaders" and/or "Atmopsheric Shaders" through the debug settings under @setenv=n | ||
254 | fEnable &= !((gRlvHandler.hasBehaviour(RLV_BHVR_SETENV)) && | ||
255 | (("VertexShaderEnable" == controlp->getName()) || ("WindLightUseAtmosShaders" == controlp->getName()))); | ||
256 | #ifdef RLV_EXTENSION_STARTLOCATION | ||
257 | // Don't allow toggling RestrainedLifeLoginLastLocation | ||
258 | fEnable &= !(RLV_SETTING_LOGINLASTLOCATION == controlp->getName()); | ||
259 | #endif // RLV_EXTENSION_STARTLOCATION | ||
260 | |||
261 | // NOTE: this runs per-frame so there's no need to explictly handle onCommitSettings() or onClickDefault() | ||
262 | spinner1->setEnabled(fEnable); | ||
263 | spinner2->setEnabled(fEnable); | ||
264 | spinner3->setEnabled(fEnable); | ||
265 | spinner4->setEnabled(fEnable); | ||
266 | color_swatch->setEnabled(fEnable); | ||
267 | childSetEnabled("val_text", fEnable); | ||
268 | childSetEnabled("boolean_combo", fEnable); | ||
269 | childSetEnabled("default_btn", fEnable); | ||
270 | } | ||
271 | // [/RLVa:KB] | ||
272 | |||
242 | eControlType type = controlp->type(); | 273 | eControlType type = controlp->type(); |
243 | 274 | ||
244 | //hide combo box only for non booleans, otherwise this will result in the combo box closing every frame | 275 | //hide combo box only for non booleans, otherwise this will result in the combo box closing every frame |