aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatersettingsdebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloatersettingsdebug.cpp')
-rw-r--r--linden/indra/newview/llfloatersettingsdebug.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatersettingsdebug.cpp b/linden/indra/newview/llfloatersettingsdebug.cpp
index 2677467..2e414cb 100644
--- a/linden/indra/newview/llfloatersettingsdebug.cpp
+++ b/linden/indra/newview/llfloatersettingsdebug.cpp
@@ -40,6 +40,11 @@
40#include "llcolorswatch.h" 40#include "llcolorswatch.h"
41#include "llviewercontrol.h" 41#include "llviewercontrol.h"
42 42
43// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0g)
44#include "rlvhandler.h"
45#include "rlvextensions.h"
46// [/RLVa:KB]
47
43LLFloaterSettingsDebug* LLFloaterSettingsDebug::sInstance = NULL; 48LLFloaterSettingsDebug* LLFloaterSettingsDebug::sInstance = NULL;
44 49
45LLFloaterSettingsDebug::LLFloaterSettingsDebug() : LLFloater(std::string("Configuration Editor")) 50LLFloaterSettingsDebug::LLFloaterSettingsDebug() : LLFloater(std::string("Configuration Editor"))
@@ -243,6 +248,32 @@ void LLFloaterSettingsDebug::updateControl(LLControlVariable* controlp)
243 248
244 if (controlp) 249 if (controlp)
245 { 250 {
251// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.1d
252 if (rlv_handler_t::isEnabled())
253 {
254 // Don't allow changing DBG_WRITE debug settings under @setdebug=n
255 bool fEnable = !( (gRlvHandler.hasBehaviour(RLV_BHVR_SETDEBUG)) &&
256 (RlvExtGetSet::getDebugSettingFlags(controlp->getName()) & RlvExtGetSet::DBG_WRITE) );
257 // Don't allow toggling "Basic Shaders" and/or "Atmopsheric Shaders" through the debug settings under @setenv=n
258 fEnable &= !((gRlvHandler.hasBehaviour(RLV_BHVR_SETENV)) &&
259 (("VertexShaderEnable" == controlp->getName()) || ("WindLightUseAtmosShaders" == controlp->getName())));
260 #ifdef RLV_EXTENSION_STARTLOCATION
261 // Don't allow toggling RestrainedLifeLoginLastLocation
262 fEnable &= !(RLV_SETTING_LOGINLASTLOCATION == controlp->getName());
263 #endif // RLV_EXTENSION_STARTLOCATION
264
265 // NOTE: this runs per-frame so there's no need to explictly handle onCommitSettings() or onClickDefault()
266 spinner1->setEnabled(fEnable);
267 spinner2->setEnabled(fEnable);
268 spinner3->setEnabled(fEnable);
269 spinner4->setEnabled(fEnable);
270 color_swatch->setEnabled(fEnable);
271 childSetEnabled("val_text", fEnable);
272 childSetEnabled("boolean_combo", fEnable);
273 childSetEnabled("default_btn", fEnable);
274 }
275// [/RLVa:KB]
276
246 eControlType type = controlp->type(); 277 eControlType type = controlp->type();
247 278
248 //hide combo box only for non booleans, otherwise this will result in the combo box closing every frame 279 //hide combo box only for non booleans, otherwise this will result in the combo box closing every frame