aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelcontents.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-19 10:54:12 -0700
committerMcCabe Maxsted2010-08-19 10:54:12 -0700
commit9302b9658ee8a2bc8547d5131faed42b6efa5575 (patch)
treecc43f4af2b727abf18986b283eface47cd23e59a /linden/indra/newview/llpanelcontents.cpp
parentDisable ParticleChat by default, as it's a privacy concern. (diff)
downloadmeta-impy-9302b9658ee8a2bc8547d5131faed42b6efa5575.zip
meta-impy-9302b9658ee8a2bc8547d5131faed42b6efa5575.tar.gz
meta-impy-9302b9658ee8a2bc8547d5131faed42b6efa5575.tar.bz2
meta-impy-9302b9658ee8a2bc8547d5131faed42b6efa5575.tar.xz
Applied RLVa-1.0.5e_fix.patch by Kitty Barnett to fix RLVa up to 1.0.5.e
Diffstat (limited to 'linden/indra/newview/llpanelcontents.cpp')
-rw-r--r--linden/indra/newview/llpanelcontents.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelcontents.cpp b/linden/indra/newview/llpanelcontents.cpp
index 33cebec..e5c4f79 100644
--- a/linden/indra/newview/llpanelcontents.cpp
+++ b/linden/indra/newview/llpanelcontents.cpp
@@ -123,6 +123,24 @@ void LLPanelContents::getState(LLViewerObject *objectp )
123 && ( objectp->permYouOwner() || ( !group_id.isNull() && gAgent.isInGroup(group_id) ))); // solves SL-23488 123 && ( objectp->permYouOwner() || ( !group_id.isNull() && gAgent.isInGroup(group_id) ))); // solves SL-23488
124 BOOL all_volume = LLSelectMgr::getInstance()->selectionAllPCode( LL_PCODE_VOLUME ); 124 BOOL all_volume = LLSelectMgr::getInstance()->selectionAllPCode( LL_PCODE_VOLUME );
125 125
126// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-10-10 (RLVa-1.0.5a) | Modified: RLVa-1.0.5a
127 if ( (rlv_handler_t::isEnabled()) && (editable) )
128 {
129 // Don't allow creation of new scripts if it's undetachable
130 editable = !gRlvHandler.isLockedAttachment(objectp, RLV_LOCK_REMOVE);
131
132 // Don't allow creation of new scripts if we're @unsit=n or @sittp=n restricted and we're sitting on the selection
133 if ( (editable) && ((gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) || (gRlvHandler.hasBehaviour(RLV_BHVR_SITTP))) )
134 {
135 LLVOAvatar* pAvatar = gAgent.getAvatarObject();
136 // Only check the first (non-)root object because nothing else would result in enabling the button (see below)
137 LLViewerObject* pObj = LLSelectMgr::getInstance()->getSelection()->getFirstRootObject(TRUE);
138
139 editable = (pObj) && (pAvatar) && ((!pAvatar->mIsSitting) || (pAvatar->getRoot() != pObj->getRootEdit()));
140 }
141 }
142// [/RLVa:KB]
143
126 // Edit script button - ok if object is editable and there's an unambiguous destination for the object. 144 // Edit script button - ok if object is editable and there's an unambiguous destination for the object.
127 childSetEnabled("button new script", 145 childSetEnabled("button new script",
128 editable && 146 editable &&