diff options
Diffstat (limited to 'linden/indra/newview/llviewerobject.cpp')
-rw-r--r-- | linden/indra/newview/llviewerobject.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerobject.cpp b/linden/indra/newview/llviewerobject.cpp index cbd0472..1b79cd6 100644 --- a/linden/indra/newview/llviewerobject.cpp +++ b/linden/indra/newview/llviewerobject.cpp | |||
@@ -98,6 +98,10 @@ | |||
98 | #include "llvowlsky.h" | 98 | #include "llvowlsky.h" |
99 | #include "llmanip.h" | 99 | #include "llmanip.h" |
100 | 100 | ||
101 | // [RLVa:KB] | ||
102 | #include "rlvhandler.h" | ||
103 | // [/RLVa:KB] | ||
104 | |||
101 | //#define DEBUG_UPDATE_TYPE | 105 | //#define DEBUG_UPDATE_TYPE |
102 | 106 | ||
103 | BOOL gVelocityInterpolate = TRUE; | 107 | BOOL gVelocityInterpolate = TRUE; |
@@ -1616,6 +1620,24 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys, | |||
1616 | gObjectList.killObject(this); | 1620 | gObjectList.killObject(this); |
1617 | return retval; | 1621 | return retval; |
1618 | } | 1622 | } |
1623 | // [RLVa:KB] - Checked: 2009-12-27 (RLVa-1.1.0k) | Added: RLVa-1.1.0k | ||
1624 | if ( (rlv_handler_t::isEnabled()) && (sent_parentp->isAvatar()) && (sent_parentp->getID() == gAgent.getID()) ) | ||
1625 | { | ||
1626 | // Rezzed object that's being worn as an attachment (we're assuming this will be due to llAttachToAvatar()) | ||
1627 | S32 idxAttachPt = ATTACHMENT_ID_FROM_STATE(getState()); | ||
1628 | if (gRlvHandler.isLockedAttachment(idxAttachPt, RLV_LOCK_ANY)) | ||
1629 | { | ||
1630 | // If this will end up on an "add locked" attachment point then treat the attach as a user action | ||
1631 | LLNameValue* nvItem = getNVPair("AttachItemID"); | ||
1632 | if (nvItem) | ||
1633 | { | ||
1634 | LLUUID idItem(nvItem->getString()); | ||
1635 | if (idItem.notNull()) | ||
1636 | gRlvHandler.onWearAttachment(idItem); | ||
1637 | } | ||
1638 | } | ||
1639 | } | ||
1640 | // [/RLVa:KB] | ||
1619 | sent_parentp->addChild(this); | 1641 | sent_parentp->addChild(this); |
1620 | // make sure this object gets a non-damped update | 1642 | // make sure this object gets a non-damped update |
1621 | if (sent_parentp->mDrawable.notNull()) | 1643 | if (sent_parentp->mDrawable.notNull()) |