From da5c9c0ae9ca3fa1eb1430ab48e49491a8524dd7 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 24 Sep 2009 14:01:21 -0700 Subject: Applied RLVa patch for Imprudence 1.2 by Kitty Barnett --- linden/indra/newview/llwindlightremotectrl.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'linden/indra/newview/llwindlightremotectrl.cpp') diff --git a/linden/indra/newview/llwindlightremotectrl.cpp b/linden/indra/newview/llwindlightremotectrl.cpp index 591b413..510e1df 100644 --- a/linden/indra/newview/llwindlightremotectrl.cpp +++ b/linden/indra/newview/llwindlightremotectrl.cpp @@ -41,6 +41,9 @@ #include "llwlparammanager.h" #include "llviewercontrol.h" +// [RLVa:KB] - Alternate: Imprudence-1.2.0 +#include "rlvhandler.h" +// [/RLVa:KB] class LLWindlightRemoteObserver : public LLWLPresetsObserver { @@ -85,6 +88,14 @@ void LLWindlightRemoteCtrl::draw() } } +// [RLVa:KB] - Alternate: Imprudence-1.2.0 + if (rlv_handler_t::isEnabled()) + { + childSetEnabled("Environment", !gRlvHandler.hasBehaviour(RLV_BHVR_SETENV)); + mPresetsCombo->setEnabled(!gRlvHandler.hasBehaviour(RLV_BHVR_SETENV)); + } +// [/RLVA:KB] + LLPanel::draw(); } -- cgit v1.1