diff options
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 4ab14f4..df07701 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -6451,37 +6451,10 @@ BOOL LLVOAvatar::attachObject(LLViewerObject *viewer_object) | |||
6451 | { | 6451 | { |
6452 | updateAttachmentVisibility(gAgent.getCameraMode()); | 6452 | updateAttachmentVisibility(gAgent.getCameraMode()); |
6453 | 6453 | ||
6454 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | 6454 | // [RLVa:KB] - Checked: 2009-10-10 (RLVa-1.0.5a) | Modified: RLVa-1.0.5a |
6455 | if (rlv_handler_t::isEnabled()) | 6455 | if (rlv_handler_t::isEnabled()) |
6456 | { | 6456 | { |
6457 | static bool fRlvFullyLoaded = false; | 6457 | gRlvHandler.onAttach(attachment); |
6458 | static LLFrameTimer* pRlvFullyLoadedTimer = NULL; | ||
6459 | |||
6460 | // There's no way to know when we're done reattaching what was attached at log-off but this ugly evil bad hack tries anyway | ||
6461 | if (!fRlvFullyLoaded) | ||
6462 | { | ||
6463 | if (pRlvFullyLoadedTimer) | ||
6464 | { | ||
6465 | if (pRlvFullyLoadedTimer->getElapsedTimeF32() > 30.0f) | ||
6466 | { | ||
6467 | fRlvFullyLoaded = true; | ||
6468 | delete pRlvFullyLoadedTimer; | ||
6469 | pRlvFullyLoadedTimer = NULL; | ||
6470 | } | ||
6471 | else | ||
6472 | { | ||
6473 | pRlvFullyLoadedTimer->reset(); | ||
6474 | } | ||
6475 | } | ||
6476 | else if ( (!pRlvFullyLoadedTimer) && | ||
6477 | ( (0 == mPendingAttachment.size()) || | ||
6478 | ((1 == mPendingAttachment.size()) && (mPendingAttachment[0] == viewer_object)) ) ) | ||
6479 | { | ||
6480 | pRlvFullyLoadedTimer = new LLFrameTimer(); | ||
6481 | } | ||
6482 | } | ||
6483 | |||
6484 | gRlvHandler.onAttach(attachment, fRlvFullyLoaded); | ||
6485 | } | 6458 | } |
6486 | // [/RLVa:KB] | 6459 | // [/RLVa:KB] |
6487 | 6460 | ||