aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltoolbar.cpp')
-rw-r--r--linden/indra/newview/lltoolbar.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/linden/indra/newview/lltoolbar.cpp b/linden/indra/newview/lltoolbar.cpp
index cc6d4b8..645d29a 100644
--- a/linden/indra/newview/lltoolbar.cpp
+++ b/linden/indra/newview/lltoolbar.cpp
@@ -303,6 +303,20 @@ void LLToolBar::refresh()
303 } 303 }
304 gSavedSettings.setBOOL("BuildBtnState", build_mode); 304 gSavedSettings.setBOOL("BuildBtnState", build_mode);
305 305
306// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-10 (RLVa-1.0.0g)
307 // Called per-frame so this really can't be slow
308 if (rlv_handler_t::isEnabled())
309 {
310 // If we're rez-restricted, we can still edit => allow build floater
311 // If we're edit-restricted, we can still rez => allow build floater
312 childSetEnabled("build_btn", !(gRlvHandler.hasBehaviour(RLV_BHVR_REZ) && gRlvHandler.hasBehaviour(RLV_BHVR_EDIT)) );
313
314 childSetEnabled("map_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWWORLDMAP) );
315 childSetEnabled("radar_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWMINIMAP) );
316 childSetEnabled("inventory_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWINV) );
317 }
318// [/RLVa:KB]
319
306 if (isInVisibleChain()) 320 if (isInVisibleChain())
307 { 321 {
308 updateCommunicateList(); 322 updateCommunicateList();